[v3,1/2] security_flags: disable -pie for ghostscript

Submitted by Andrew Shadura on March 9, 2017, 2:31 p.m. | Patch ID: 137913

Details

Message ID 20170309143139.2785-1-andrew.shadura@collabora.co.uk
State New
Headers show

Commit Message

Andrew Shadura March 9, 2017, 2:31 p.m.
Otherwise ghostscript fails to build the libraries:

relocation R_X86_64_PC32 against symbol `st_ttfInterpreter'
can not be used when making a shared object; recompile
with -fPIC

Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
---
 meta/conf/distro/include/security_flags.inc | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index 5a1cbb1..cb8b696 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -33,6 +33,7 @@  SECURITY_CFLAGS_pn-coreutils = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-cups = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-db = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-directfb = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-ghostscript = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-glibc = ""
 SECURITY_CFLAGS_pn-glibc-initial = ""
 SECURITY_CFLAGS_pn-elfutils = "${SECURITY_NO_PIE_CFLAGS}"