Skip to content

Commit c1f607c

Browse files
authored
fix -lto_library filtering for apple-clang + gfortran on sdk26 (#5474)
* ensure filter-out applies to subsequent sdk versions
1 parent 1dcd4cb commit c1f607c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.system

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ ifeq (x$(XCVER), x 15)
441441
CCOMMON_OPT += -Wl,-ld_classic
442442
FCOMMON_OPT += -Wl,-ld_classic
443443
endif
444-
ifeq (x$(XCVER), x 16)
444+
ifeq ($(shell [ $(XCVER) -ge 16 ] && echo yes),yes)
445445
override CEXTRALIB := $(filter-out(-lto_library, $(CEXTRALIB)))
446446
endif
447447
endif

0 commit comments

Comments
 (0)