Mercurial > mxe-octave
annotate tools/set_mxe_env.sh.in @ 3180:803d75af88ca
Set native build options using configure definitions
* tools/set_mxe_env.sh.in: use the config.guess name for the host, set the pkgconfig exe extension based on EXEEXT.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 25 Jul 2013 21:29:53 -0400 |
parents | cbdf4575016d |
children | 0d3feaef089f |
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@ |
3180
803d75af88ca
Set native build options using configure definitions
John Donoghue <john.donoghue@ieee.org>
parents:
3060
diff
changeset
|
3 HOST=$($MXEDIR/tools/config.guess) |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 if [ -z "$MXE_OCTAVE_ENV" ]; then |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
6 |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
7 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
|
8 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
|
9 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
|
10 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
|
11 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
|
12 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
|
13 |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
14 export MXE_OCTAVE_ENV=$MXEDIR |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
15 |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
16 fi |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
17 |
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 |