Compile with -ffunction-sections on hppa and -mxgot on mips*
authorAaron M. Ucko <ucko@debian.org>
Sun, 28 Jul 2024 02:35:02 +0000 (22:35 -0400)
committerAaron M. Ucko <ucko@debian.org>
Sun, 28 Jul 2024 02:35:02 +0000 (22:35 -0400)
... (mips64el in practice) due to having outgrown default settings.

debian/changelog
debian/rules

index 388e5ffa6fa5711f627ec860e776f355b257c6bf..78266554e85cbf4b1199c8fdb4ab24b0f770399b 100644 (file)
@@ -1,10 +1,13 @@
 ncbi-blast+ (2.16.0+ds-4) UNRELEASED; urgency=medium
 
   * NOT RELEASED YET.
-  * debian/rules: Move architecture.mk inclusion to the very top for the
-    sake of hypothetical builds bypassing dpkg-buildpackage.
+  * debian/rules:
+    - Move architecture.mk inclusion to the very top for the sake of
+      hypothetical builds bypassing dpkg-buildpackage.
+    - Compile with -ffunction-sections on hppa and -mxgot on mips*
+      (mips64el in practice) due to having outgrown default settings.
 
- -- Aaron M. Ucko <ucko@debian.org>  Sat, 27 Jul 2024 22:28:37 -0400
+ -- Aaron M. Ucko <ucko@debian.org>  Sat, 27 Jul 2024 22:35:01 -0400
 
 ncbi-blast+ (2.16.0+ds-3) unstable; urgency=medium
 
index d460c89d49f73cd85e034d4ea41df620cbe421d2..aea426aa98b31b3a21b6705c9dcbc0b405ed8db9 100755 (executable)
@@ -36,6 +36,16 @@ ifeq ($(DEB_HOST_ARCH_BITS),32)
   endif
 endif
 
+ifeq (hppa,$(DEB_HOST_ARCH))
+  export DEB_CFLAGS_MAINT_APPEND   += -ffunction-sections
+  export DEB_CXXFLAGS_MAINT_APPEND += -ffunction-sections
+endif
+# Down to mips64el in practice, but easy enough to generalize
+ifneq (,$(findstring mips,$(DEB_HOST_ARCH)))
+  export DEB_CFLAGS_MAINT_APPEND   += -mxgot
+  export DEB_CXXFLAGS_MAINT_APPEND += -mxgot
+endif
+
 include /usr/share/dpkg/buildflags.mk
 
 ifneq (,$(findstring mips,$(DEB_HOST_ARCH)))