[Git][debian-gis-team/postgis][master] Disable LTO on i386 with configure flags.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Jul 27 07:20:34 BST 2023



Bas Couwenberg pushed to branch master at Debian GIS Project / postgis


Commits:
a15e4750 by Bas Couwenberg at 2023-07-27T08:20:08+02:00
Disable LTO on i386 with configure flags.

- - - - -


1 changed file:

- debian/rules


Changes:

=====================================
debian/rules
=====================================
@@ -10,10 +10,6 @@ export DH_OPTIONS
 # Enable hardening build flags
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-ifneq (,$(filter $(DEB_BUILD_ARCH),i386))
-export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
-endif
-
 # Don't fail when d/control doesn't match template
 export PG_UPDATECONTROL=yes
 
@@ -29,6 +25,13 @@ else
 	TEST_FAIL_COMMAND = exit 1
 endif
 
+# Disable LTO on i386
+ifneq (,$(filter $(DEB_BUILD_ARCH),i386))
+ENABLE_LTO=--disable-lto
+else
+ENABLE_LTO=--enable-lto
+endif
+
 # Upstream version (including ~rcN) for symbols version
 UPSTREAM_VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
 
@@ -60,7 +63,7 @@ COMMON_CONFIGURE_ARGS = --host=$(DEB_HOST_GNU_TYPE) \
 	--infodir=\$${prefix}/share/info \
 	--without-interrupt-tests \
 	--without-phony-revision \
-	--enable-lto
+	$(ENABLE_LTO)
 
 NJOBS := -j1
 ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))



View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/a15e4750f54fc879c10a38809315645977b0e395

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/a15e4750f54fc879c10a38809315645977b0e395
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230727/4270346c/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list