aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc/gcc-configure-canadian-sdk.inc
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-04-07 16:22:07 -0700
committerTom Rini <trini@embeddedalley.com>2009-04-07 16:22:07 -0700
commitae48ce485442fa2c1a7d0552bf6b4ea10fe692cf (patch)
tree3455ecc629509c99c853eadc5a41e12be80d2790 /recipes/gcc/gcc-configure-canadian-sdk.inc
parentec31872ec8e83079e983869504eef39fa98a4233 (diff)
downloadopenembedded-ae48ce485442fa2c1a7d0552bf6b4ea10fe692cf.tar.gz
gcc-canadian-sdk: Fix C++ relocation, add SYSROOT, use SDK_REALPATH_MINGW, bump PR.
Diffstat (limited to 'recipes/gcc/gcc-configure-canadian-sdk.inc')
-rw-r--r--recipes/gcc/gcc-configure-canadian-sdk.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/recipes/gcc/gcc-configure-canadian-sdk.inc b/recipes/gcc/gcc-configure-canadian-sdk.inc
index c95a6c41df..738b120a45 100644
--- a/recipes/gcc/gcc-configure-canadian-sdk.inc
+++ b/recipes/gcc/gcc-configure-canadian-sdk.inc
@@ -61,11 +61,12 @@ export WINDRES_FOR_TARGET="${TARGET_PREFIX}windres"
EXTRA_OECONF_DEP ?= ""
EXTRA_OECONF += ""
+# On MinGW hosts we want to prepend a drive letter, in ${SDK_REALPATH_MINGW}
+# to the sysroot path.
+SYSROOT = "${@['${SDK_REALPATH}/${TARGET_SYS}', '${SDK_REALPATH_MINGW}${SDK_REALPATH}/${TARGET_SYS}'][bb.data.getVar('SDK_OS', d, 1) in ['mingw32', 'mingw64']]}"
EXTRA_OECONF_PATHS = " \
- --with-local-prefix=$dollar{prefix}/local \
- --with-gxx-include-dir=$dollar{prefix}/${TARGET_SYS}/usr/include/c++/${BINV} \
--with-build-sysroot=${STAGING_DIR_TARGET} \
- --with-sysroot=${SDK_REALPATH}/${TARGET_SYS} \
+ --with-sysroot=${SYSROOT} \
"
do_configure () {