Fix makefile: 32 bit builds without optimization.
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 15 Feb 2017 05:11:44 +0000 (21:11 -0800)
committerJoona Kiiski <joona@zoox.com>
Wed, 15 Feb 2017 05:11:44 +0000 (21:11 -0800)
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

.travis.yml
src/Makefile

index 87a3e7d..4310b1b 100644 (file)
@@ -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
   #
index 47b884a..33b6d15 100644 (file)
@@ -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)