summaryrefslogtreecommitdiff
path: root/data/no-pie-link.specs
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-10-21 00:18:55 +0200
committerGuillem Jover <guillem@debian.org>2016-11-06 03:07:14 +0100
commit1852648603b1cc26ee4ce95a5173032445af4eb1 (patch)
tree2619659fca93e4083f0ea25262ee4d8e15c35269 /data/no-pie-link.specs
parent53392da21859b4df51cb19b6c880f2f06135eca7 (diff)
downloaddpkg-1852648603b1cc26ee4ce95a5173032445af4eb1.tar.gz
Dpkg::Vendor::Debian: Handle PIE enabled by default in gcc
Add support for compiler built-in features, so that we do not set them when enabled and set negated flags when disabled. We use gcc spec files to set these flags so that we avoid any conflict with other incompatible flags that would make the build fail. Closes: #835149 Based-on-patch-by: Bálint Réczey <balint@balintreczey.hu>
Diffstat (limited to 'data/no-pie-link.specs')
-rw-r--r--data/no-pie-link.specs2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/no-pie-link.specs b/data/no-pie-link.specs
new file mode 100644
index 000000000..07df3122c
--- /dev/null
+++ b/data/no-pie-link.specs
@@ -0,0 +1,2 @@
+*self_spec:
++ %{!shared:%{!r:-no-pie}}