From 4c2284213da8cd39cd2bed5398b710986862485d Mon Sep 17 00:00:00 2001 From: "Aaron M. Ucko" Date: Sat, 27 Jul 2024 22:35:02 -0400 Subject: [PATCH] Compile with -ffunction-sections on hppa and -mxgot on mips* ... (mips64el in practice) due to having outgrown default settings. --- debian/changelog | 9 ++++++--- debian/rules | 10 ++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) 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))) -- 2.30.2