Fix FTBFS on MIPS architectures
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Wed, 22 Dec 2021 07:41:05 +0000 (08:41 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Wed, 22 Dec 2021 07:41:05 +0000 (08:41 +0100)
debian/rules

index a546e6447bc8eb4aa97663bf5fad6924aa79d658..19608eddfb2c598bfbd39d3e8db3072019347ead 100755 (executable)
@@ -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