Skip to content

Commit

Permalink
Merge pull request #4253 from martin-frbg/issue4239-2
Browse files Browse the repository at this point in the history
Require "classic ld" with XCODE 15.x on Mac
  • Loading branch information
martin-frbg authored Oct 10, 2023
2 parents 4a0f863 + 103d6f4 commit bf3183d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bf3183d

Please sign in to comment.