mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +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:
+4
-4
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user