mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08: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:
@@ -212,16 +212,16 @@ osx-x86:
|
||||
$(MAKE) \
|
||||
CXX='g++' \
|
||||
CXXFLAGS="$(GCCFLAGS)" \
|
||||
CXXFLAGS+='-arch i386' \
|
||||
LDFLAGS+='-arch i386' \
|
||||
CXXFLAGS+='-arch i386 -mdynamic-no-pic' \
|
||||
LDFLAGS+='-arch i386 -mdynamic-no-pic' \
|
||||
all
|
||||
|
||||
osx-x86_64:
|
||||
$(MAKE) \
|
||||
CXX='g++' \
|
||||
CXXFLAGS="$(GCCFLAGS)" \
|
||||
CXXFLAGS+='-arch x86_64' \
|
||||
LDFLAGS+='-arch x86_64' \
|
||||
CXXFLAGS+='-arch x86_64 -mdynamic-no-pic' \
|
||||
LDFLAGS+='-arch x86_64 -mdynamic-no-pic' \
|
||||
all
|
||||
|
||||
osx-icc32:
|
||||
|
||||
Reference in New Issue
Block a user