summaryrefslogtreecommitdiffstats
path: root/zz_config/win-builds-switch.in
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2014-12-12 10:33:36 +0100
committerAdrien Nader <adrien@notk.org>2014-12-12 10:33:36 +0100
commit2c2162e72273c25a8b5fe2ba558da999175666b6 (patch)
tree0c18d1bfdce4f465896845e8068f51b7432adbc0 /zz_config/win-builds-switch.in
parent3ec32e6b3ed5ff9b400f59d74b1ff3bfb0ea3a1b (diff)
zz_config/win-builds-switch: add native_toolchain/bin to $PATH for cross.
Diffstat (limited to 'zz_config/win-builds-switch.in')
-rw-r--r--zz_config/win-builds-switch.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/zz_config/win-builds-switch.in b/zz_config/win-builds-switch.in
index 0fcea3f..d1f3be7 100644
--- a/zz_config/win-builds-switch.in
+++ b/zz_config/win-builds-switch.in
@@ -36,10 +36,17 @@ put_toolchain_in_path() {
local BASE="${1}"
local BITS="${2}"
+ local BASE2
+ if [ -n "${BITS}" ]; then
+ BASE2="${BASE}_"
+ else
+ BASE2="${BASE}"
+ fi
+
replace_in_path \
- "/opt/${BASE}_??/bin" \
- "/opt/${BASE}_../bin" \
- "/opt/${BASE}_${BITS}/bin"
+ "/opt/${BASE2}??/bin" \
+ "/opt/${BASE2}../bin" \
+ "/opt/${BASE2}${BITS}/bin"
}
unset PKG_CONFIG_PATH
@@ -59,6 +66,7 @@ else
# Cygwin, Linux, possibly any other
PKG_CONFIG_LIBDIR="@@YYPREFIX_TARGET@@/lib@@LIBDIRSUFFIX@@/pkgconfig"
put_toolchain_in_path "cross_toolchain" "@@BITS@@"
+ put_toolchain_in_path "windows" ""
fi
export PKG_CONFIG_LIBDIR