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.
Backported from master.
No functional change
Resolves #275
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)
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