Mercurial > mxe-octave
view tools/set_mxe_env.sh.in @ 3245:94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
* tools/set_mxe_env.sh.in: Set include,lib and path dependant on native build and set export variables from result.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 03 Sep 2013 10:08:29 -0400 |
parents | 0d3feaef089f |
children |
line wrap: on
line source
#!/bin/bash MXEDIR=@MXE_ROOTDIR@ if [ -z "$MXE_OCTAVE_ENV" ]; then if [ "@MXE_NATIVE_BUILD@" = "yes" ]; then MXE_PATH="$MXEDIR/usr/bin" MXE_INC_PATH="$MXEDIR/usr/include" MXE_LIB_PATH="$MXEDIR/usr/lib" else HOST=$($MXEDIR/tools/config.guess) MXE_PATH="$MXEDIR/usr/$HOST/bin:$MXEDIR/usr/bin" MXE_INC_PATH="$MXEDIR/usr/$HOST/include" MXE_LIB_PATH="$MXEDIR/usr/$HOST/lib" fi export PATH="$MXE_PATH:$PATH" export CPPFLAGS="-I$MXE_INC_PATH" export LDFLAGS="-L$MXE_LIB_PATH" export LD_LIBRARY_PATH="$MXE_LIB_PATH:$LD_LIBRARY_PATH" export PKG_CONFIG_PATH="$MXE_LIB_PATH/pkgconfig" export PKG_CONFIG="$MXEDIR/usr/bin/pkg-config@EXEEXT@" export MXE_OCTAVE_ENV=$MXEDIR fi