Commit 41f87f4d authored by Felix Paul Kühne's avatar Felix Paul Kühne

contrib/OSX: add compilation support in case Xcode's command-line support package wasn't installed

parent 27fd9820
......@@ -106,12 +106,12 @@ endif
ifdef HAVE_MACOSX
MIN_OSX_VERSION=10.6
CC=gcc-4.2
CXX=g++-4.2
AR=ar
LD=ld
STRIP=strip
RANLIB=ranlib
CC=xcrun gcc
CXX=xcrun g++
AR=xcrun ar
LD=xcrun ld
STRIP=xcrun strip
RANLIB=xcrun ranlib
EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
EXTRA_LDFLAGS += -Wl,-syslibroot,$(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -isysroot $(MACOSX_SDK) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
ifeq ($(ARCH),x86_64)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment