diff options
author | Guillem Jover <guillem@debian.org> | 2016-10-21 00:18:55 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-11-06 03:07:14 +0100 |
commit | 1852648603b1cc26ee4ce95a5173032445af4eb1 (patch) | |
tree | 2619659fca93e4083f0ea25262ee4d8e15c35269 /data | |
parent | 53392da21859b4df51cb19b6c880f2f06135eca7 (diff) | |
download | dpkg-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')
-rw-r--r-- | data/no-pie-compile.specs | 2 | ||||
-rw-r--r-- | data/no-pie-link.specs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/data/no-pie-compile.specs b/data/no-pie-compile.specs new file mode 100644 index 000000000..f85b39438 --- /dev/null +++ b/data/no-pie-compile.specs @@ -0,0 +1,2 @@ +*cc1_options: ++ %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fno-PIE}}}}}} 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}} |