summaryrefslogtreecommitdiffstats
path: root/tools/mxe-activate
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2014-02-19 05:10:18 (GMT)
committerTony Theodore <tonyt@logyst.com>2014-02-19 05:10:18 (GMT)
commit9d64a57b431cd33a94ed0496ee9de6fc740eae79 (patch)
tree20e031e56e350e50ca53b388a2097c4f0e90ff27 /tools/mxe-activate
parent515c1c305080094718e2068a4ea402c4c74c6fef (diff)
downloadmxe-9d64a57b431cd33a94ed0496ee9de6fc740eae79.zip
mxe-9d64a57b431cd33a94ed0496ee9de6fc740eae79.tar.gz
mxe-9d64a57b431cd33a94ed0496ee9de6fc740eae79.tar.bz2
mxe-activate: fix tools path and target list
Diffstat (limited to 'tools/mxe-activate')
-rw-r--r--tools/mxe-activate7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/mxe-activate b/tools/mxe-activate
index 9ab7c9e..461b547 100644
--- a/tools/mxe-activate
+++ b/tools/mxe-activate
@@ -1,9 +1,12 @@
export MXE_DIR=`pwd`
-export BUILD=`$MXE_DIR/tools/config.guess`
+export BUILD=`$MXE_DIR/ext/config.guess`
export PATH=$MXE_DIR/usr/$BUILD/bin:$MXE_DIR/usr/bin:$PATH
MAKE=`gmake --help >/dev/null 2>&1 && echo g`make
SED=`gsed --help >/dev/null 2>&1 && echo g`sed
-MXE_TARGET_LIST="`grep 'MXE_TARGET_LIST.*:=' Makefile | $SED -n 's,^.*:= \(.*\)$,\1,p'`"
+
+MXE_TRIPLETS=`grep ^MXE_TRIPLETS Makefile | cut -d '=' -f2 | cut -d ' ' -f2- | tr ' ' ','`
+MXE_LIB_TYPES=`grep ^MXE_LIB_TYPES Makefile | cut -d '=' -f2 | cut -d ' ' -f2- | tr ' ' ','`
+MXE_TARGET_LIST=`eval "echo {$MXE_TRIPLETS}.{$MXE_LIB_TYPES}"`
alias mxe='$MAKE -C $MXE_DIR --no-print-directory'