changeset 3220:0d3feaef089f

Setup set_mxe_env.sh paths for native/non native builds dependant on config variables. * tools/set_mxe_env.sh.in: use MXE_NATIVE_BUILD config variable to set HOST for environment path.
author John Donoghue <john.donoghue@ieee.org>
date Wed, 07 Aug 2013 19:18:23 -0400
parents 78d7da6225f6
children c05da3e2f652
files tools/set_mxe_env.sh.in
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/set_mxe_env.sh.in	Wed Aug 07 08:33:31 2013 -0400
+++ b/tools/set_mxe_env.sh.in	Wed Aug 07 19:18:23 2013 -0400
@@ -1,6 +1,11 @@
 #!/bin/bash
 MXEDIR=@MXE_ROOTDIR@
-HOST=$($MXEDIR/tools/config.guess)
+
+if [ "@MXE_NATIVE_BUILD@" = "yes" ]; then
+  HOST=""
+else
+  HOST=$($MXEDIR/tools/config.guess)
+fi
 
 if [ -z "$MXE_OCTAVE_ENV" ]; then