Mercurial > mxe-octave
annotate tools/set-mxe-env.sh.in @ 5545:78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 02 Oct 2020 13:54:27 +0200 |
parents | fc075c6c9a0b |
children |
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 |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 if [ -z "$MXE_OCTAVE_ENV" ]; then |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 |
3245
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
6 if [ "@MXE_NATIVE_BUILD@" = "yes" ]; then |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
7 MXE_PATH="$MXEDIR/usr/bin" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
8 MXE_INC_PATH="$MXEDIR/usr/include" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
9 MXE_LIB_PATH="$MXEDIR/usr/lib" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
10 else |
4066 | 11 HOST=$(@abs_top_srcdir@/tools/config.guess) |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
12 |
3245
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
13 MXE_PATH="$MXEDIR/usr/$HOST/bin:$MXEDIR/usr/bin" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
14 MXE_INC_PATH="$MXEDIR/usr/$HOST/include" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
15 MXE_LIB_PATH="$MXEDIR/usr/$HOST/lib" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
16 fi |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
17 |
4080 | 18 if [ "@ENABLE_LIB64_DIRECTORY@" = "yes" ]; then |
19 MXE_LIB_PATH="$MXE_LIB_PATH:${MXE_LIB_PATH}64" | |
20 fi | |
21 | |
3245
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
22 export PATH="$MXE_PATH:$PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
23 export CPPFLAGS="-I$MXE_INC_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
24 export LDFLAGS="-L$MXE_LIB_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
25 export LD_LIBRARY_PATH="$MXE_LIB_PATH:$LD_LIBRARY_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
26 export PKG_CONFIG_PATH="$MXE_LIB_PATH/pkgconfig" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
27 export PKG_CONFIG="$MXEDIR/usr/bin/pkg-config@EXEEXT@" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
28 |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
29 export MXE_OCTAVE_ENV=$MXEDIR |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
30 |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
31 fi |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
32 |