Don't add -m32/-m64 to CXXFLAGS
authorSven Joachim <svenjoac@gmx.de>
Thu, 7 Jan 2021 20:18:11 +0000 (20:18 +0000)
committerMilan Zamazal <pdm@debian.org>
Thu, 7 Jan 2021 20:18:11 +0000 (20:18 +0000)
Bug-Debian: https://bugs.debian.org/843922
Last-Update: 2016-11-11

Adding those is not only unnecessary, but actually breaks the build on
many architectures, since g++ does not recognize them when built without
multilib support.

Gbp-Pq: Name cxxflags.patch

src/Makefile

index 340b3008381be752d1d9edf1cd3020bffd323961..397bc361164a54a52dd634045b9cc0f6e75de5bb 100644 (file)
@@ -314,9 +314,6 @@ ifeq ($(COMP),gcc)
                        CXXFLAGS += -m$(bits)
                        LDFLAGS += -m$(bits)
                endif
-       else
-               CXXFLAGS += -m$(bits)
-               LDFLAGS += -m$(bits)
        endif
 
        ifeq ($(arch),$(filter $(arch),armv7))