Commit 56ba3eb2 authored by Rafaël Carré's avatar Rafaël Carré

contrib: OSX needs special care

I could only test building for OSX 10.6 as it's what jones have
Hardcoding 32bits target until someone tests 64bits
parent 4a7bb89c
...@@ -89,6 +89,19 @@ STRIP := $(HOST)-strip ...@@ -89,6 +89,19 @@ STRIP := $(HOST)-strip
endif endif
endif endif
ifdef HAVE_MACOSX
OSX_VERSION=10.6
MACOSX_SDK=/Developer/SDKs/MacOSX$(OSX_VERSION).sdk
CC=gcc-4.2
CXX=g++-4.2
EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(OSX_VERSION)
EXTRA_LDFLAGS += -Wl,-syslibroot $(MACOSX_SDK) -mmacosx-version-min=$(OSX_VERSION) -isysroot $(MACOSX_SDK)
# FIXME
EXTRA_CFLAGS += -m32
EXTRA_LDFLAGS += -m32
endif
EXTRA_CFLAGS += -I$(PREFIX)/include EXTRA_CFLAGS += -I$(PREFIX)/include
CPPFLAGS := $(CPPFLAGS) $(EXTRA_CFLAGS) CPPFLAGS := $(CPPFLAGS) $(EXTRA_CFLAGS)
CFLAGS := $(CFLAGS) $(EXTRA_CFLAGS) CFLAGS := $(CFLAGS) $(EXTRA_CFLAGS)
......
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