Browse Source

Merge pull request #4253 from martin-frbg/issue4239-2

Require "classic ld" with XCODE 15.x on Mac
tags/v0.3.25^2
Martin Kroeker GitHub 2 years ago
parent
commit
bf3183d31d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Makefile.system

+ 7
- 0
Makefile.system 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))


Loading…
Cancel
Save