Skip to contentSkip to conversation

meta-oe: override SECURITY_CFLAGS for llvm3.3

PATCH New [email protected] 1 participant 1 message Jun 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-oe: override SECURITY_CFLAGS for llvm3.3

From: Manuel Bachmann <[email protected]>

When compiling llvm3.3 and including meta_oe_security_flags.inc:
- on x86 (qemux86 e.g.), text relocation warnings appear ;
- on x86-64 (qemux86-64 e.g.), linking fails with the following error message:
"relocation R_X86_64_PC32 against undefined symbol [...] recompile with -fPIC"

Add llvm3.3 to the overrides list, so that it builds correctly.

---
 meta-oe/conf/distro/include/meta_oe_security_flags.inc | 1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/distro/include/meta_oe_security_flags.inc +1 -0
index 2565e32..b0d30a3 100644
@@ -3,5 +3,6 @@ SECURITY_CFLAGS_pn-lvm2 = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-rrdtool = "${SECURITY_NO_PIE_CFLAGS}"
 
 # This has text reloc errors with the pie options enabled
+SECURITY_CFLAGS_pn-llvm3.3 = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-mozjs = "${SECURITY_NO_PIE_CFLAGS}"
 SECURITY_CFLAGS_pn-openldap = "${SECURITY_NO_PIE_CFLAGS}"
Signature · 1 line
1.8.3.1