summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb/debian.module
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2017-12-28 22:16:52 +0300
committerAndrei Belov <defan@nginx.com>2017-12-28 22:16:52 +0300
commit3e9e6878a671f0f95889fb153ce52d6a12d4a5a4 (patch)
tree1f3d1c63a49a9d02f3987afc7325d81c05d6ca8e /pkg/deb/debian.module
parentd45326481c5edfa34cbda30f6050e4a658e13fdb (diff)
downloadunit-3e9e6878a671f0f95889fb153ce52d6a12d4a5a4.tar.gz
unit-3e9e6878a671f0f95889fb153ce52d6a12d4a5a4.tar.bz2
Packages: fixed building on 64-bit Debian 9 and Ubuntu 17.10.
Diffstat (limited to '')
-rwxr-xr-xpkg/deb/debian.module/rules-noarch.in2
-rwxr-xr-xpkg/deb/debian.module/rules.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/deb/debian.module/rules-noarch.in b/pkg/deb/debian.module/rules-noarch.in
index 61f2bd25..d75134db 100755
--- a/pkg/deb/debian.module/rules-noarch.in
+++ b/pkg/deb/debian.module/rules-noarch.in
@@ -4,7 +4,7 @@
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
-export DEB_CFLAGS_MAINT_APPEND=-Wp,-D_FORTIFY_SOURCE=2
+export DEB_CFLAGS_MAINT_APPEND=-Wp,-D_FORTIFY_SOURCE=2 -fPIC
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
diff --git a/pkg/deb/debian.module/rules.in b/pkg/deb/debian.module/rules.in
index b8ef9e85..22e381fe 100755
--- a/pkg/deb/debian.module/rules.in
+++ b/pkg/deb/debian.module/rules.in
@@ -4,7 +4,7 @@
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
-export DEB_CFLAGS_MAINT_APPEND=-Wp,-D_FORTIFY_SOURCE=2
+export DEB_CFLAGS_MAINT_APPEND=-Wp,-D_FORTIFY_SOURCE=2 -fPIC
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk