Don't add -m32/-m64 to CXXFLAGS
authorSven Joachim <svenjoac@gmx.de>
Sat, 11 Nov 2023 20:21:24 +0000 (21:21 +0100)
committerMilan Zamazal <pdm@debian.org>
Sat, 11 Nov 2023 20:21:24 +0000 (21:21 +0100)
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 82664618bb75e22ee5ddabe0718c46ac54488a97..4eb209870fb1449915aa0a0fab5e065c9072a777 100644 (file)
@@ -388,9 +388,6 @@ ifeq ($(COMP),gcc)
                ifeq ($(ARCH),riscv64)
                        CXXFLAGS += -latomic
                endif
-       else
-               CXXFLAGS += -m$(bits)
-               LDFLAGS += -m$(bits)
        endif
 
        ifeq ($(arch),$(filter $(arch),armv7))