summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2016-02-01 14:01:24 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-02 14:44:16 +0000
commit4d80f7af9a63165b3134afb6118bd2ea56c92793 (patch)
tree31d63a4fafb62e32234ccd5280a655c5d56c2131 /meta/recipes-devtools/gcc/gcc-configure-common.inc
parent654eddce352f3681a716116c6bd9cf0c18b09e5a (diff)
downloadpoky-4d80f7af9a63165b3134afb6118bd2ea56c92793.tar.gz
gcc-configure-common.inc: drop --enable-target-optspace from configure
Configuring gcc with --enable-target-optspace (which causes gcc to append "-g -Os" to the default CFLAGS_FOR_TARGET and so force libgcc etc target libraries to always be optimised for size) dates back to the very first commit in oe-core git in 2005 (for gcc 3.4.3). Configuring gcc with --enable-target-optspace is not done widely elsewhere (it's not used for Ubuntu or Fedora host gcc, the Linaro binary toolchain or in Buildroot since early 2015). Sometime around gcc 4.5.x it caused problems for powerpc and so was disabled for that architecture: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810 This patch removes --enable-target-optspace completely (ie powerpc is no longer a special case) and allows optimisation of libgcc etc to be controlled directly by the flags present in TARGET_CFLAGS. (From OE-Core rev: 686b266506a1a56fb68ab0f00d658787dd7fe4ce) Signed-off-by: Andre McCurdy <armccurdy@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.inc8
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 85e69db535..f4f76bda53 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -14,13 +14,6 @@ JAVA_sh3 ?= ""
14# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran' 14# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
15FORTRAN ?= ",f77" 15FORTRAN ?= ",f77"
16LANGUAGES ?= "c,c++${FORTRAN}${JAVA}" 16LANGUAGES ?= "c,c++${FORTRAN}${JAVA}"
17# disable --enable-target-optspace for powerpc SPE
18# at -Os libgcc.so.1 creates references into
19# hidden symbols in libgcc.a which linker complains
20# when linking shared libraries further in the build like (gnutls)
21
22SPECIAL_ARCH_LIST = "powerpc"
23OPTSPACE = '${@bb.utils.contains("SPECIAL_ARCH_LIST", "${TARGET_ARCH}", "", "--enable-target-optspace",d)}'
24 17
25EXTRA_OECONF_BASE ?= "" 18EXTRA_OECONF_BASE ?= ""
26EXTRA_OECONF_PATHS ?= "" 19EXTRA_OECONF_PATHS ?= ""
@@ -42,7 +35,6 @@ EXTRA_OECONF = "\
42 --enable-libstdcxx-pch \ 35 --enable-libstdcxx-pch \
43 --program-prefix=${TARGET_PREFIX} \ 36 --program-prefix=${TARGET_PREFIX} \
44 --without-local-prefix \ 37 --without-local-prefix \
45 ${OPTSPACE} \
46 ${EXTRA_OECONF_BASE} \ 38 ${EXTRA_OECONF_BASE} \
47 ${EXTRA_OECONF_GCC_FLOAT} \ 39 ${EXTRA_OECONF_GCC_FLOAT} \
48 ${EXTRA_OECONF_PATHS} \ 40 ${EXTRA_OECONF_PATHS} \