From: Topi Kuutela Date: Fri, 7 Aug 2015 06:42:35 +0000 (+0300) Subject: security_flags.inc: disable -pie and -fpie from Python3 compilation. X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94818c5240b793464700945d0cf057bffb9e1008;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git security_flags.inc: disable -pie and -fpie from Python3 compilation. If security_flags.inc is 'required' to the image, -pie and -fpie options are added to CFLAGS. These are not compatible with -shared GCC option. The result is several errors of following form and missing Python3 modules in the image: *.o In function `_start': *.S undefined reference to `main' collect2: error: ld returned 1 exit status Signed-off-by: Topi Kuutela Signed-off-by: Richard Purdie --- diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index 372497290df..ff600fa96b9 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc @@ -82,6 +82,7 @@ SECURITY_CFLAGS_pn-python-imaging = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_CFLAGS_pn-python-pycurl = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_CFLAGS_pn-python-smartpm = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_CFLAGS_pn-python-numpy = "${SECURITY_NO_PIE_CFLAGS}" +SECURITY_CFLAGS_pn-python3 = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_CFLAGS_pn-tcl = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_CFLAGS_pn-tiff = "${SECURITY_NO_PIE_CFLAGS}" SECURITY_CFLAGS_pn-valgrind = "${SECURITY_NO_PIE_CFLAGS}"