From 8787b2284d7cf393497562d27baf69d1a76c43c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig=20=28Debian/GNU=29?= Date: Wed, 22 Dec 2021 08:41:05 +0100 Subject: [PATCH] Fix FTBFS on MIPS architectures --- debian/rules | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/rules b/debian/rules index a546e644..19608edd 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,7 @@ export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CPPFLAGS_MAINT_APPEND = +export DEB_CXXFLAGS_MAINT_APPEND = export DEB_LDFLAGS_MAINT_APPEND = DPKG_EXPORT_BUILDFLAGS = 1 @@ -35,6 +36,12 @@ ifeq ($(if $(noatomicarch),atomic), atomic) DEB_LDFLAGS_MAINT_APPEND += -latomic endif + +ifneq ($(strip $(filter $(arch), mipsel mips64el)),) + DEB_CXXFLAGS_MAINT_APPEND += -mxgot +endif + + # Debian's Projucer is GPL DEB_CPPFLAGS_MAINT_APPEND += -DJUCER_ENABLE_GPL_MODE=1 -- 2.30.2