summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-configure-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-common.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-common.inc28
1 files changed, 13 insertions, 15 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index a64c4caf00..50ff0d2e82 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -6,7 +6,7 @@ require gcc-shared-source.inc
6# These can be overridden by the version specific .inc file. 6# These can be overridden by the version specific .inc file.
7 7
8# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran' 8# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
9FORTRAN ?= ",f77" 9FORTRAN ??= ",fortran"
10LANGUAGES ?= "c,c++${FORTRAN}" 10LANGUAGES ?= "c,c++${FORTRAN}"
11 11
12EXTRA_OECONF_BASE ?= "" 12EXTRA_OECONF_BASE ?= ""
@@ -44,27 +44,27 @@ EXTRA_OECONF = "\
44 44
45# glibc version is a minimum controlling whether features are enabled. 45# glibc version is a minimum controlling whether features are enabled.
46# Doesn't need to track glibc exactly 46# Doesn't need to track glibc exactly
47EXTRA_OECONF_append_libc-glibc = " --with-glibc-version=2.28 " 47EXTRA_OECONF:append:libc-glibc = " --with-glibc-version=2.28 "
48 48
49# Set this here since GCC configure won't auto-detect and enable 49# Set this here since GCC configure won't auto-detect and enable
50# initfini-arry when cross compiling. 50# initfini-arry when cross compiling.
51EXTRA_OECONF_append = " --enable-initfini-array" 51EXTRA_OECONF:append = " --enable-initfini-array"
52 52
53export gcc_cv_collect2_libs = 'none required' 53export gcc_cv_collect2_libs = 'none required'
54# We need to set gcc_cv_collect2_libs else there is cross-compilation badness 54# We need to set gcc_cv_collect2_libs else there is cross-compilation badness
55# in the config.log files (which might not get generated until do_compile 55# in the config.log files (which might not get generated until do_compile
56# hence being missed by the insane do_configure check). 56# hence being missed by the insane do_configure check).
57 57
58EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" 58EXTRA_OECONF:append:linux = " --enable-__cxa_atexit"
59 59
60EXTRA_OECONF_append_mips64 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 60EXTRA_OECONF:append:mips64 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
61EXTRA_OECONF_append_mips64el = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 61EXTRA_OECONF:append:mips64el = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
62EXTRA_OECONF_append_mips64n32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 62EXTRA_OECONF:append:mips64n32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
63EXTRA_OECONF_append_mips64eln32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" 63EXTRA_OECONF:append:mips64eln32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64"
64EXTRA_OECONF_append_mipsisa32r6el = " --with-abi=32 --with-arch=mips32r6" 64EXTRA_OECONF:append:mipsisa32r6el = " --with-abi=32 --with-arch=mips32r6"
65EXTRA_OECONF_append_mipsisa32r6 = " --with-abi=32 --with-arch=mips32r6" 65EXTRA_OECONF:append:mipsisa32r6 = " --with-abi=32 --with-arch=mips32r6"
66EXTRA_OECONF_append_mipsisa64r6el = " --with-abi=64 --with-arch-64=mips64r6" 66EXTRA_OECONF:append:mipsisa64r6el = " --with-abi=64 --with-arch-64=mips64r6"
67EXTRA_OECONF_append_mipsisa64r6 = " --with-abi=64 --with-arch-64=mips64r6" 67EXTRA_OECONF:append:mipsisa64r6 = " --with-abi=64 --with-arch-64=mips64r6"
68 68
69EXTRA_OECONF_GCC_FLOAT ??= "" 69EXTRA_OECONF_GCC_FLOAT ??= ""
70CPPFLAGS = "" 70CPPFLAGS = ""
@@ -73,7 +73,7 @@ SYSTEMHEADERS = "${target_includedir}"
73SYSTEMLIBS = "${target_base_libdir}/" 73SYSTEMLIBS = "${target_base_libdir}/"
74SYSTEMLIBS1 = "${target_libdir}/" 74SYSTEMLIBS1 = "${target_libdir}/"
75 75
76do_configure_prepend () { 76do_configure:prepend () {
77 # teach gcc to find correct target includedir when checking libc ssp support 77 # teach gcc to find correct target includedir when checking libc ssp support
78 mkdir -p ${B}/gcc 78 mkdir -p ${B}/gcc
79 echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe 79 echo "NATIVE_SYSTEM_HEADER_DIR = ${SYSTEMHEADERS}" > ${B}/gcc/t-oe
@@ -116,7 +116,5 @@ do_configure () {
116 export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}" 116 export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}"
117 export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}" 117 export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}"
118 118
119
120 oe_runconf 119 oe_runconf
121} 120}
122