]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-configure: Render --with-local-prefix harmless
authorKhem Raj <raj.khem@gmail.com>
Tue, 10 Apr 2012 01:56:59 +0000 (18:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Apr 2012 13:48:48 +0000 (14:48 +0100)
this option by default points to /usr/local no matter
what so we cant let it sit on sidelines otherwise it
will access host machine's /usr/local which may not
be desired. So disable this option. This also helps in making
gcc's shared state more consistent

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-devtools/gcc/gcc-configure-common.inc
meta/recipes-devtools/gcc/gcc-configure-cross.inc
meta/recipes-devtools/gcc/gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc-configure-sdk.inc
meta/recipes-devtools/gcc/gcc-configure-target.inc
meta/recipes-devtools/gcc/gcc-cross-initial.inc
meta/recipes-devtools/gcc/gcc-cross-intermediate.inc

index 39b5f5223e01cd698e786ce12250a5768d19ced6..e022be4b5067d74a75ebfa017cdb821ad9bd4c48 100644 (file)
@@ -38,6 +38,7 @@ EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', True) !=
                 --enable-symvers=gnu \
                 --enable-libstdcxx-pch \
                 --program-prefix=${TARGET_PREFIX} \
+               --without-local-prefix \
                 ${OPTSPACE} \
                 ${EXTRA_OECONF_BASE} \
                 ${EXTRA_OECONF_FPU} \
index 98961923ba46fb0f0abdd6396f30776756acae6a..65e340a0d73273da556d2223e34ca8b71101ea59 100644 (file)
@@ -8,7 +8,7 @@ EXTRA_OECONF += " --enable-poison-system-directories \
 
 INHIBIT_DEFAULT_DEPS = "1"
 
-EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \
+EXTRA_OECONF_PATHS = " \
                      --with-gxx-include-dir=${STAGING_DIR_TARGET}${target_includedir}/c++ \
                       --with-sysroot=${STAGING_DIR_TARGET} \
                       --with-build-sysroot=${STAGING_DIR_TARGET}"
index d2e4ab334b488c70ed120e908e8fa1f3d42f529a..095d6c16d20efafb130daa6ec87f46897a9b5d71 100644 (file)
@@ -3,7 +3,6 @@ require gcc-configure-common.inc
 CXXFLAGS := "${@oe_filter_out('-fvisibility-inlines-hidden', '${CXXFLAGS}', d)}"
 
 EXTRA_OECONF_PATHS = " \
-    --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \
     --with-gxx-include-dir=${includedir}/c++/ \
     --with-sysroot=${STAGING_DIR_TARGET} \
     --with-build-sysroot=${STAGING_DIR_TARGET}"
index 6aac0ad88787f672b72aa786e1f193df386051a7..90e20f56c7e05c1781ca45643aa421b69425b542 100644 (file)
@@ -4,8 +4,7 @@ require gcc-configure-common.inc
 USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
 USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}'
 
-EXTRA_OECONF_PATHS = "--with-local-prefix=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${target_exec_prefix} \
-                      --with-gxx-include-dir=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${target_includedir}/c++ \
+EXTRA_OECONF_PATHS = "--with-gxx-include-dir=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${target_includedir}/c++ \
                       --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
                       --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
                       --with-build-sysroot=${STAGING_DIR_TARGET}"
index 8b169a7c548893436581d53e7fbea05d3d60e0d4..1ee75048bad6e6ad24071c8f7ac1288db14a1f60 100644 (file)
@@ -1,5 +1,4 @@
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = " \
-    --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \
     --with-gxx-include-dir=${includedir}/c++/"
index 66c47e027c433a516fb142474710f098a99d9486..faec391dcbfb6c017ce6b34294547cdb22a9ed5e 100644 (file)
@@ -9,8 +9,7 @@ CROSS_TARGET_SYS_DIR_append = ".${PN}"
 
 # This is intended to be a -very- basic config
 # sysroot is needed in case we use libc-initial
-EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
-               --with-newlib \
+EXTRA_OECONF = "--with-newlib \
                --without-headers \
                --disable-shared \
                --disable-threads \
index c356576cd9579697d611687cf3e93b26a68a8d2c..c940e549c52971b2317dfa21f1622c0875b6cb26 100644 (file)
@@ -14,8 +14,7 @@ CROSS_TARGET_SYS_DIR_append = ".${PN}"
 # Glibc won't compile with gold, and building glibc is the whole point of
 # this recipe.   So we select ld.bfd explicitly here if gold is the distro's 
 # preferred linker.
-EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
-               --enable-shared \
+EXTRA_OECONF = "--enable-shared \
                --disable-multilib \
                --disable-threads \
                --enable-languages=c \