view tools/set-mxe-env.sh.in @ 4654:b9e4ebcad82f

disable doc extraction for optim package Disable the rules for extracting doc strings because they don't work when cross compiling. Our patches to the source files don't touch the doc strings, so there is no need to update them anyway.
author John W. Eaton <jwe@octave.org>
date Tue, 10 Apr 2018 07:50:10 -0400
parents fc075c6c9a0b
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=$(@abs_top_srcdir@/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

  if [ "@ENABLE_LIB64_DIRECTORY@" = "yes" ]; then
    MXE_LIB_PATH="$MXE_LIB_PATH:${MXE_LIB_PATH}64"
  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