Skip to content

Commit bf3183d

Browse files
authored
Merge pull request #4253 from martin-frbg/issue4239-2
Require "classic ld" with XCODE 15.x on Mac
2 parents 4a0f863 + 103d6f4 commit bf3183d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile.system

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,13 @@ export MACOSX_DEPLOYMENT_TARGET=10.8
405405
endif
406406
endif
407407
MD5SUM = md5 -r
408+
XCVER = $(shell pkgutil --pkg-info=com.apple.pkg.Xcode |awk '/version:/ {print $2}'|cut -d: -f2|cut -f1 -d.)
409+
ifeq (x$(XCVER)x,xx)
410+
XCVER = $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables |awk '/version:/ {print $2}'|cut -d: -f2|cut -f1 -d.)
411+
endif
412+
ifeq (x$(XCVER), x 15)
413+
CCOMMON_OPT += -Wl,-ld_classic
414+
endif
408415
endif
409416

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

0 commit comments

Comments
 (0)