view tools/set-mxe-env.sh.in @ 6215:d18a5545df0d release

build-gettext: Don't build emacs bindings. * src/build-gettext.mk: The `emacs` installed on the build system might be incompatible with the STL built by build-gcc. We probably don't need the emacs bindings for the `gettext` build tool anyway. So skip building those bindings.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 07 May 2022 12:01:10 +0200
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