Don't add -m32/-m64 to CXXFLAGS
authorSven Joachim <svenjoac@gmx.de>
Sat, 3 May 2025 17:47:24 +0000 (19:47 +0200)
committerMilan Zamazal <pdm@debian.org>
Sat, 3 May 2025 17:47:24 +0000 (19:47 +0200)
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 76b94785ecb59a3e58a57325091e1d6cff66723d..dc8e2257919f5d58105024a34e9305b5fcd65931 100644 (file)
@@ -445,9 +445,6 @@ ifeq ($(COMP),gcc)
                endif
        else ifeq ($(arch),loongarch64)
                CXXFLAGS += -latomic
-       else
-               CXXFLAGS += -m$(bits)
-               LDFLAGS += -m$(bits)
        endif
 
        ifeq ($(arch),$(filter $(arch),armv7))