From: Joost VandeVondele Date: Wed, 15 Feb 2017 05:11:44 +0000 (-0800) Subject: Fix makefile: 32 bit builds without optimization. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=1e814e0ca01458c1084862087af0374b043b5cd8;hp=e0d91f4c44c10c1f46ef95234ce15e9123866fe1 Fix makefile: 32 bit builds without optimization. Fixes failing build for make ARCH=x86-32 clean && make ARCH=x86-32 optimize=no build by passing -m32 also to the link step. Extend travis testing accordingly. No functional change. Closes #999 --- diff --git a/.travis.yml b/.travis.yml index 87a3e7dc..4310b1bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,6 +54,8 @@ script: # verify against reference - make clean && make ARCH=x86-64 build > /dev/null && ../tests/signature.sh $benchref - make clean && make ARCH=x86-32 build > /dev/null && ../tests/signature.sh $benchref + - make clean && make ARCH=x86-64 optimize=no debug=yes build > /dev/null && ../tests/signature.sh $benchref + - make clean && make ARCH=x86-32 optimize=no debug=yes build > /dev/null && ../tests/signature.sh $benchref # # perft # diff --git a/src/Makefile b/src/Makefile index 47b884a0..33b6d159 100644 --- a/src/Makefile +++ b/src/Makefile @@ -155,9 +155,11 @@ ifeq ($(COMP),gcc) ifeq ($(ARCH),armv7) ifeq ($(OS),Android) CXXFLAGS += -m$(bits) + LDFLAGS += -m$(bits) endif else CXXFLAGS += -m$(bits) + LDFLAGS += -m$(bits) endif ifneq ($(KERNEL),Darwin)