diff options
Diffstat (limited to 'recipes/binutils')
-rw-r--r-- | recipes/binutils/binutils-canadian-sdk_2.18.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes/binutils/binutils-canadian-sdk_2.18.bb b/recipes/binutils/binutils-canadian-sdk_2.18.bb index cf27cd06f8..e44e7b7144 100644 --- a/recipes/binutils/binutils-canadian-sdk_2.18.bb +++ b/recipes/binutils/binutils-canadian-sdk_2.18.bb @@ -9,9 +9,12 @@ DEPENDS="\ " FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}" -EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \ +# 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 = "--with-sysroot=${SYSROOT} \ --program-prefix=${TARGET_PREFIX}" -PR = "r3" +PR = "r4" FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug" |