Changes between Initial version and Version 1 of Ticket #1933, comment 3


Ignore:
Timestamp:
4 Jun 2017, 06:21:19 (7 years ago)
Author:
Bas Couwenberg

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1933, comment 3

    initial v1  
    22
    33It's likely that the PIE option for libgdal-grass was not disabled for the Ubuntu build causing this issue.
     4
     5The buildlog confirms this:
     6{{{
     7g++ -Wall -fPIC [...] -fPIE -fstack-protector-strong -Wformat -Werror=format-security  -c -o ogrgrassdriver.o ogrgrassdriver.cpp
     8}}}
     9
     10Add the following to `debian/rules` for libgdal-grass:
     11{{{
     12# Disable PIE on Ubuntu where it's still problematic
     13VENDOR_DERIVES_FROM_UBUNTU ?= $(shell dpkg-vendor --derives-from Ubuntu && echo yes)
     14
     15ifeq ($(VENDOR_DERIVES_FROM_UBUNTU),yes)
     16        export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
     17endif
     18}}}