annotate tools/set_mxe_env.sh.in @ 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 803d75af88ca
children 94042dd6ea1a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3060
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
1 #!/bin/bash
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
2 MXEDIR=@MXE_ROOTDIR@
3220
0d3feaef089f Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents: 3180
diff changeset
3
0d3feaef089f Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents: 3180
diff changeset
4 if [ "@MXE_NATIVE_BUILD@" = "yes" ]; then
0d3feaef089f Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents: 3180
diff changeset
5 HOST=""
0d3feaef089f Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents: 3180
diff changeset
6 else
0d3feaef089f Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents: 3180
diff changeset
7 HOST=$($MXEDIR/tools/config.guess)
0d3feaef089f Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents: 3180
diff changeset
8 fi
3060
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
9
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 if [ -z "$MXE_OCTAVE_ENV" ]; then
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
11
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
12 export PATH="$MXEDIR/usr/$HOST/bin:$MXEDIR/usr/bin:$PATH"
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
13 export CPPFLAGS="-I$MXEDIR/usr/$HOST/include"
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
14 export LDFLAGS="-L$MXEDIR/usr/$HOST/lib"
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 export LD_LIBRARY_PATH="$MXEDIR/usr/$HOST/lib:$LD_LIBRARY_PATH"
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
16 export PKG_CONFIG_PATH="$MXEDIR/usr/$HOST/lib/pkgconfig"
3180
803d75af88ca Set native build options using configure definitions
John Donoghue <john.donoghue@ieee.org>
parents: 3060
diff changeset
17 export PKG_CONFIG="$MXEDIR/usr/bin/pkg-config@EXEEXT@"
3060
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
19 export MXE_OCTAVE_ENV=$MXEDIR
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
21 fi
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23
cbdf4575016d add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24