]> code.ossystems Code Review - openembedded-core.git/commit
security_flags.inc: disable -pie and -fpie from Python3 compilation.
authorTopi Kuutela <topi.kuutela@intel.com>
Fri, 7 Aug 2015 06:42:35 +0000 (09:42 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Aug 2015 07:12:48 +0000 (00:12 -0700)
commit94818c5240b793464700945d0cf057bffb9e1008
tree0b5c676e5da163ac5d377049bfad95142b328de9
parenta0f8cb7e0ffa15e101d39463c77707c821250203
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 <topi.kuutela@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/security_flags.inc