From: Aaron M. Ucko Date: Sun, 28 Jul 2024 02:35:02 +0000 (-0400) Subject: Compile with -ffunction-sections on hppa and -mxgot on mips* X-Git-Tag: archive/raspbian/2.16.0+ds-7+rpi1~1^2~34 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4c2284213da8cd39cd2bed5398b710986862485d;p=ncbi-blast%2B.git Compile with -ffunction-sections on hppa and -mxgot on mips* ... (mips64el in practice) due to having outgrown default settings. --- diff --git a/debian/changelog b/debian/changelog index 388e5ffa..78266554 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 27 Jul 2024 22:28:37 -0400 + -- Aaron M. Ucko Sat, 27 Jul 2024 22:35:01 -0400 ncbi-blast+ (2.16.0+ds-3) unstable; urgency=medium diff --git a/debian/rules b/debian/rules index d460c89d..aea426aa 100755 --- a/debian/rules +++ b/debian/rules @@ -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)))