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 ...@@ -106,12 +106,12 @@ endif
ifdef HAVE_MACOSX ifdef HAVE_MACOSX
MIN_OSX_VERSION=10.6 MIN_OSX_VERSION=10.6
CC=gcc-4.2 CC=xcrun gcc
CXX=g++-4.2 CXX=xcrun g++
AR=ar AR=xcrun ar
LD=ld LD=xcrun ld
STRIP=strip STRIP=xcrun strip
RANLIB=ranlib RANLIB=xcrun ranlib
EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION) 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) 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) 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