1
0
Fork 0
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:
Stéphane Nicolet 2015-03-02 22:01:19 +01:00 committed by Joona Kiiski
parent cb2111f0b6
commit 6fa6da3ee1

View file

@ -151,7 +151,11 @@ ifeq ($(COMP),gcc)
comp=gcc comp=gcc
CXX=g++ CXX=g++
CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow 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 endif
ifeq ($(COMP),mingw) ifeq ($(COMP),mingw)
@ -189,8 +193,8 @@ else
endif endif
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.10 CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.9
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.10 LDFLAGS += -arch $(arch) -mmacosx-version-min=10.9
endif endif
### On mingw use Windows threads, otherwise POSIX ### On mingw use Windows threads, otherwise POSIX