Don't add -m32/-m64 to CXXFLAGS
authorSven Joachim <svenjoac@gmx.de>
Wed, 15 Feb 2023 21:21:58 +0000 (21:21 +0000)
committerMilan Zamazal <pdm@debian.org>
Wed, 15 Feb 2023 21:21:58 +0000 (21:21 +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 917bd5c06c7a83f9d4c48f9a531df196b0cb2d9d..db48421c545052e6f7e8d0351af64d8d256b957c 100644 (file)
@@ -376,9 +376,6 @@ ifeq ($(COMP),gcc)
                ifeq ($(ARCH),riscv64)
                        CXXFLAGS += -latomic
                endif
-       else
-               CXXFLAGS += -m$(bits)
-               LDFLAGS += -m$(bits)
        endif
 
        ifeq ($(arch),$(filter $(arch),armv7))