Require "classic ld" with XCODE 15.x on Mac

This commit is contained in:
Martin Kroeker 2023-10-10 16:15:52 +02:00 committed by GitHub
parent 4a0f86397b
commit 103d6f4e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -405,6 +405,13 @@ export MACOSX_DEPLOYMENT_TARGET=10.8
endif
endif
MD5SUM = md5 -r
XCVER = $(shell pkgutil --pkg-info=com.apple.pkg.Xcode |awk '/version:/ {print $2}'|cut -d: -f2|cut -f1 -d.)
ifeq (x$(XCVER)x,xx)
XCVER = $(shell pkgutil --pkg-info=com.apple.pkg.CLTools_Executables |awk '/version:/ {print $2}'|cut -d: -f2|cut -f1 -d.)
endif
ifeq (x$(XCVER), x 15)
CCOMMON_OPT += -Wl,-ld_classic
endif
endif
ifneq (,$(findstring $(OSNAME), FreeBSD OpenBSD DragonFly))