diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-04-14 18:10:45 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:23:27 +0100 |
commit | 70f1fd06439fc0d340639cfe1e90ba8f4d9298fa (patch) | |
tree | ca86b04f28a6703d0c170e0223f551678b45cb71 /meta/recipes-devtools/gcc/gcc-runtime.inc | |
parent | 89c12fc8de6b80e0e9add7f012553eb4e38dac7f (diff) | |
download | poky-70f1fd06439fc0d340639cfe1e90ba8f4d9298fa.tar.gz |
gcc: Add recipes for gcc-7
Switch default compiler to gcc 7
(From OE-Core rev: 03bb12008891cf1a023aaddb6547da6d41d0cab0)
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-runtime.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-runtime.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc index 0dc405c591..8430ae0d3c 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc | |||
@@ -34,7 +34,6 @@ RUNTIMETARGET_remove_libc-musl = "libmpx" | |||
34 | 34 | ||
35 | do_configure () { | 35 | do_configure () { |
36 | export CXX="${CXX} -nostdinc++ -nostdlib++" | 36 | export CXX="${CXX} -nostdinc++ -nostdlib++" |
37 | |||
38 | for d in libgcc ${RUNTIMETARGET}; do | 37 | for d in libgcc ${RUNTIMETARGET}; do |
39 | echo "Configuring $d" | 38 | echo "Configuring $d" |
40 | rm -rf ${B}/${TARGET_SYS}/$d/ | 39 | rm -rf ${B}/${TARGET_SYS}/$d/ |
@@ -43,6 +42,9 @@ do_configure () { | |||
43 | chmod a+x ${S}/$d/configure | 42 | chmod a+x ${S}/$d/configure |
44 | relpath=${@os.path.relpath("${S}/$d", "${B}/${TARGET_SYS}/$d")} | 43 | relpath=${@os.path.relpath("${S}/$d", "${B}/${TARGET_SYS}/$d")} |
45 | $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} | 44 | $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} |
45 | if [ "$d" = "libgcc" ]; then | ||
46 | (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) | ||
47 | fi | ||
46 | done | 48 | done |
47 | } | 49 | } |
48 | EXTRACONFFUNCS += "extract_stashed_builddir" | 50 | EXTRACONFFUNCS += "extract_stashed_builddir" |