Skip to content

Commit 1ed962d

Browse files
authored
Fix compilation with xcode16.3/clang17/gcc14
1 parent f0008f5 commit 1ed962d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile.system

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,15 @@ ifeq (x$(XCVER), x 15)
435435
CCOMMON_OPT += -Wl,-ld_classic
436436
FCOMMON_OPT += -Wl,-ld_classic
437437
endif
438+
ifeq (x$(XCVER), x 16)
439+
ifeq ($(C_COMPILER), GCC)
440+
CCOMMON_OPT += -Wl,-ld_classic
441+
FCOMMON_OPT += -Wl,-ld_classic
442+
endif
443+
ifeq ($(F_COMPILER), GFORTRAN)
444+
override CEXTRALIB := $(filter-out(-lto_library, $(CEXTRALIB)))
445+
endif
446+
endif
438447
endif
439448

440449
ifneq (,$(findstring $(OSNAME), FreeBSD OpenBSD DragonFly))

0 commit comments

Comments
 (0)