[Debian-l10n-devel] Bug#930586: poedit: fix mips64 build with -mxgot instead of emembed json

YunQiang Su wzssyqa at gmail.com
Sun Jun 16 05:11:37 BST 2019


Package: src:poedit
Version: 2.2.1-2

poedit failed to build on mips64el due to GOT is too small, and so we
should use XGOT.

diff -Nru poedit-2.2.1/debian/rules poedit-2.2.1/debian/rules
--- poedit-2.2.1/debian/rules 2019-01-22 10:52:13.000000000 +0000
+++ poedit-2.2.1/debian/rules 2019-01-22 10:52:13.000000000 +0000
@@ -4,14 +4,14 @@

 export LDFLAGS += -Wl,--as-needed
 export LDFLAGS += -Wl,-z,relro
+ifneq ($(findstring mips64,$(DEB_HOST_ARCH)),)
+  export CXXFLAGS += -mxgot
+endif

 %:
  dh $@

 override_dh_auto_configure:
-ifeq ($(DEB_HOST_ARCH),mips64el)
- patch -p1 -R < debian/patches/new-json-hpp.patch
-endif
  ./bootstrap
  dh_auto_configure -- --disable-silent-rules --enable-debug



-- 
YunQiang Su



More information about the Debian-l10n-devel mailing list