From 1ed962d25975ff9fba9ca08f5f5d5101bd6426b7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 6 Apr 2025 10:44:48 -0700 Subject: [PATCH] Fix compilation with xcode16.3/clang17/gcc14 --- Makefile.system | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.system b/Makefile.system index d6dd9e960..79544276b 100644 --- a/Makefile.system +++ b/Makefile.system @@ -435,6 +435,15 @@ ifeq (x$(XCVER), x 15) CCOMMON_OPT += -Wl,-ld_classic FCOMMON_OPT += -Wl,-ld_classic endif +ifeq (x$(XCVER), x 16) +ifeq ($(C_COMPILER), GCC) +CCOMMON_OPT += -Wl,-ld_classic +FCOMMON_OPT += -Wl,-ld_classic +endif +ifeq ($(F_COMPILER), GFORTRAN) +override CEXTRALIB := $(filter-out(-lto_library, $(CEXTRALIB))) +endif +endif endif ifneq (,$(findstring $(OSNAME), FreeBSD OpenBSD DragonFly))