From 7d8def84e0d7d11780786e6792fad3ba145e6dfa Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 4 Jun 2012 09:52:06 -0600 Subject: [PATCH] fix build on old Xcode versions --- makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 49c82a1bcf..9514d67dcf 100755 --- a/makefile +++ b/makefile @@ -326,8 +326,12 @@ ifeq ($(platform),darwin) endif version-script-flag = - lflags = $(common-lflags) -ldl -framework CoreFoundation \ - -Wl,-compatibility_version,1.0.0 + lflags = $(common-lflags) -ldl -framework CoreFoundation + + ifeq (,$(shell ld -v | grep cctools)) + lflags += -Wl,-compatibility_version,1.0.0 + endif + ifneq ($(arch),arm) lflags += -framework CoreServices -framework SystemConfiguration \ -framework Security