mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Update Makefile for Mac OS X compilation
This change in the Makefile restores the possibility to compile Stockfish on Mac OS X 10.9 and 10.10 after the C++11 has been merged. To use the default (fastest) settings, compile with: make build ARCH=x86-64-modern To test the clang settings, compile with make build ARCH=x86-64-modern COMP=clang Beware that the clang settings may provide a slightly slower (6%) executable. No functional change Resolves #275
This commit is contained in:
parent
cb2111f0b6
commit
6fa6da3ee1
1 changed files with 7 additions and 3 deletions
10
src/Makefile
10
src/Makefile
|
@ -151,7 +151,11 @@ ifeq ($(COMP),gcc)
|
|||
comp=gcc
|
||||
CXX=g++
|
||||
CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow
|
||||
LDFLAGS += -Wl,--no-as-needed
|
||||
ifneq ($(UNAME),Darwin)
|
||||
LDFLAGS += -Wl,--no-as-needed
|
||||
else
|
||||
LDFLAGS += -Wl
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(COMP),mingw)
|
||||
|
@ -189,8 +193,8 @@ else
|
|||
endif
|
||||
|
||||
ifeq ($(UNAME),Darwin)
|
||||
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.10
|
||||
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.10
|
||||
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.9
|
||||
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.9
|
||||
endif
|
||||
|
||||
### On mingw use Windows threads, otherwise POSIX
|
||||
|
|
Loading…
Add table
Reference in a new issue