diff --git a/Makefile.system b/Makefile.system index b44cbf9873..6241006a81 100644 --- a/Makefile.system +++ b/Makefile.system @@ -441,7 +441,7 @@ ifeq (x$(XCVER), x 15) CCOMMON_OPT += -Wl,-ld_classic FCOMMON_OPT += -Wl,-ld_classic endif -ifeq (x$(XCVER), x 16) +ifeq ($(shell [ $(XCVER) -ge 16 ] && echo yes),yes) override CEXTRALIB := $(filter-out(-lto_library, $(CEXTRALIB))) endif endif