[Git][debian-gis-team/gdal-grass][master] 2 commits: Disable as-needed linking on Debian too, gcc-9 enables it by default.

Bas Couwenberg gitlab at salsa.debian.org
Sun Sep 8 21:31:09 BST 2019



Bas Couwenberg pushed to branch master at Debian GIS Project / gdal-grass


Commits:
250b9d31 by Bas Couwenberg at 2019-09-08T20:20:52Z
Disable as-needed linking on Debian too, gcc-9 enables it by default.

- - - - -
9b702e1a by Bas Couwenberg at 2019-09-08T20:21:52Z
Set distribution to unstable.

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+libgdal-grass (2.4.2-3) unstable; urgency=medium
+
+  * Disable as-needed linking on Debian too, gcc-9 enables it by default.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sun, 08 Sep 2019 22:21:39 +0200
+
 libgdal-grass (2.4.2-2) unstable; urgency=medium
 
   * Update packaging for GRASS 7.8.0.


=====================================
debian/rules
=====================================
@@ -7,6 +7,9 @@
 # Enable hardening build flags
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+# Don't link with as-needed to prevent missing libraries
+export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed
+
 # Disable PIE on Ubuntu where it's still problematic
 VENDOR_DERIVES_FROM_UBUNTU ?= $(shell dpkg-vendor --derives-from Ubuntu && echo yes)
 DISTRIBUTION_RELEASE       := $(shell lsb_release -cs)
@@ -15,7 +18,6 @@ ifeq ($(VENDOR_DERIVES_FROM_UBUNTU),yes)
   ifneq (,$(filter $(DISTRIBUTION_RELEASE),xenial bionic))
     export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
   endif
-  export DEB_LDFLAGS_MAINT_APPEND=-Wl,--no-as-needed
 endif
 
 PKGNAME=$(shell grep Package: debian/control | head -1 | cut -d' ' -f2)



View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal-grass/compare/c200aa699c82a1534ef2689f899949d7ea7efa39...9b702e1ac0bf38a0dc7e3f7ee387c0a0d25774c9

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal-grass/compare/c200aa699c82a1534ef2689f899949d7ea7efa39...9b702e1ac0bf38a0dc7e3f7ee387c0a0d25774c9
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/20190908/4f39d66b/attachment-0001.html>


More information about the Pkg-grass-devel mailing list