On Sun, Mar 7, 2021 at 12:26 PM Marek Behún <marek.be...@nic.cz> wrote: > > When building with LTO, move $(PLATFORM_LIBS) into the --start-group / > --end-group list.
This should be --whole-archive > Otherwise some functions declared in assembly may not be resolved and > linking may fail. I am not sure if this is caused by we build these lib functions with -flto? > > Signed-off-by: Marek Behún <marek.be...@nic.cz> > --- > Makefile | 3 ++- > scripts/Makefile.spl | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > Regards, Bin