summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-10 07:51:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-08 13:34:45 +0100
commitc91314ec160420a320007d552cec6c7da4d54833 (patch)
tree3e9dc67899c1661dde55711bdbe0c97c6987c6ed /meta/recipes-devtools/gcc/gcc-configure-common.inc
parenta12d9164ead57569269ad6d3e21332e95f73c04f (diff)
downloadpoky-c91314ec160420a320007d552cec6c7da4d54833.tar.gz
gcc: Introduce a knob to configure gcc to default to PIE
GCCPIE flag which is empty by default adds "--enable-default-pie" configure option for harderned distros We do not require to add -fpie -pie flag externally anymore (From OE-Core rev: 1c7e195c94764d680a12a49b870f04cd58860f81) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-common.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-common.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 63fa1d9686..e2ce234aa1 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -22,6 +22,8 @@ EXTRA_OECONF_INITIAL ?= ""
22GCCMULTILIB ?= "--disable-multilib" 22GCCMULTILIB ?= "--disable-multilib"
23GCCTHREADS ?= "posix" 23GCCTHREADS ?= "posix"
24 24
25GCCPIE ??= ""
26
25EXTRA_OECONF = "\ 27EXTRA_OECONF = "\
26 ${@['--enable-clocale=generic', ''][d.getVar('USE_NLS') != 'no']} \ 28 ${@['--enable-clocale=generic', ''][d.getVar('USE_NLS') != 'no']} \
27 --with-gnu-ld \ 29 --with-gnu-ld \
@@ -29,6 +31,7 @@ EXTRA_OECONF = "\
29 --enable-languages=${LANGUAGES} \ 31 --enable-languages=${LANGUAGES} \
30 --enable-threads=${GCCTHREADS} \ 32 --enable-threads=${GCCTHREADS} \
31 ${GCCMULTILIB} \ 33 ${GCCMULTILIB} \
34 ${GCCPIE} \
32 --enable-c99 \ 35 --enable-c99 \
33 --enable-long-long \ 36 --enable-long-long \
34 --enable-symvers=gnu \ 37 --enable-symvers=gnu \