diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-common.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-common.inc | 28 |
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' |
9 | FORTRAN ?= ",f77" | 9 | FORTRAN ??= ",fortran" |
10 | LANGUAGES ?= "c,c++${FORTRAN}" | 10 | LANGUAGES ?= "c,c++${FORTRAN}" |
11 | 11 | ||
12 | EXTRA_OECONF_BASE ?= "" | 12 | EXTRA_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 |
47 | EXTRA_OECONF_append_libc-glibc = " --with-glibc-version=2.28 " | 47 | EXTRA_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. |
51 | EXTRA_OECONF_append = " --enable-initfini-array" | 51 | EXTRA_OECONF:append = " --enable-initfini-array" |
52 | 52 | ||
53 | export gcc_cv_collect2_libs = 'none required' | 53 | export 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 | ||
58 | EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" | 58 | EXTRA_OECONF:append:linux = " --enable-__cxa_atexit" |
59 | 59 | ||
60 | EXTRA_OECONF_append_mips64 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" | 60 | EXTRA_OECONF:append:mips64 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" |
61 | EXTRA_OECONF_append_mips64el = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" | 61 | EXTRA_OECONF:append:mips64el = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" |
62 | EXTRA_OECONF_append_mips64n32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" | 62 | EXTRA_OECONF:append:mips64n32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" |
63 | EXTRA_OECONF_append_mips64eln32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" | 63 | EXTRA_OECONF:append:mips64eln32 = " --with-abi=64 --with-arch-64=mips64 --with-tune-64=mips64" |
64 | EXTRA_OECONF_append_mipsisa32r6el = " --with-abi=32 --with-arch=mips32r6" | 64 | EXTRA_OECONF:append:mipsisa32r6el = " --with-abi=32 --with-arch=mips32r6" |
65 | EXTRA_OECONF_append_mipsisa32r6 = " --with-abi=32 --with-arch=mips32r6" | 65 | EXTRA_OECONF:append:mipsisa32r6 = " --with-abi=32 --with-arch=mips32r6" |
66 | EXTRA_OECONF_append_mipsisa64r6el = " --with-abi=64 --with-arch-64=mips64r6" | 66 | EXTRA_OECONF:append:mipsisa64r6el = " --with-abi=64 --with-arch-64=mips64r6" |
67 | EXTRA_OECONF_append_mipsisa64r6 = " --with-abi=64 --with-arch-64=mips64r6" | 67 | EXTRA_OECONF:append:mipsisa64r6 = " --with-abi=64 --with-arch-64=mips64r6" |
68 | 68 | ||
69 | EXTRA_OECONF_GCC_FLOAT ??= "" | 69 | EXTRA_OECONF_GCC_FLOAT ??= "" |
70 | CPPFLAGS = "" | 70 | CPPFLAGS = "" |
@@ -73,7 +73,7 @@ SYSTEMHEADERS = "${target_includedir}" | |||
73 | SYSTEMLIBS = "${target_base_libdir}/" | 73 | SYSTEMLIBS = "${target_base_libdir}/" |
74 | SYSTEMLIBS1 = "${target_libdir}/" | 74 | SYSTEMLIBS1 = "${target_libdir}/" |
75 | 75 | ||
76 | do_configure_prepend () { | 76 | do_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 | |||