mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Add -mdynamic-no-pic to CFLAGS when compiling with GCC under OS X.
Without this flag, the __cpuid() function doesn't compile correctly in 32-bit mode.
This commit is contained in:
parent
10c1ae8da0
commit
13224e1d9d
1 changed files with 4 additions and 4 deletions
|
@ -212,16 +212,16 @@ osx-x86:
|
||||||
$(MAKE) \
|
$(MAKE) \
|
||||||
CXX='g++' \
|
CXX='g++' \
|
||||||
CXXFLAGS="$(GCCFLAGS)" \
|
CXXFLAGS="$(GCCFLAGS)" \
|
||||||
CXXFLAGS+='-arch i386' \
|
CXXFLAGS+='-arch i386 -mdynamic-no-pic' \
|
||||||
LDFLAGS+='-arch i386' \
|
LDFLAGS+='-arch i386 -mdynamic-no-pic' \
|
||||||
all
|
all
|
||||||
|
|
||||||
osx-x86_64:
|
osx-x86_64:
|
||||||
$(MAKE) \
|
$(MAKE) \
|
||||||
CXX='g++' \
|
CXX='g++' \
|
||||||
CXXFLAGS="$(GCCFLAGS)" \
|
CXXFLAGS="$(GCCFLAGS)" \
|
||||||
CXXFLAGS+='-arch x86_64' \
|
CXXFLAGS+='-arch x86_64 -mdynamic-no-pic' \
|
||||||
LDFLAGS+='-arch x86_64' \
|
LDFLAGS+='-arch x86_64 -mdynamic-no-pic' \
|
||||||
all
|
all
|
||||||
|
|
||||||
osx-icc32:
|
osx-icc32:
|
||||||
|
|
Loading…
Add table
Reference in a new issue