Changeset 26620


Ignore:
Timestamp:
2013-01-09T14:15:52+13:00 (9 years ago)
Author:
davidb
Message:

Cross-compilation support added (mingw under Linux)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/gnome-lib/trunk/src/packages/CASCADE-MAKE/LIBBZ2.sh

    r23274 r26620  
    1010prefix=$GEXTGNOME_INSTALLED
    1111
     12if [ "x$CROSSCONFIGURE_ARGS" != "x" ] ; then
     13  export CPP="$crossHost-cpp"
     14  export CC="$crossHost-gcc"
     15  export CXX="$crossHost-g++"
     16  export LD="$crossHost-ld"
     17  export AR="$crossHost-ar"
     18  export RANLIB="$crossHost-ranlib"
     19fi
     20
     21
     22fixmake=0
     23
     24if [ "x$CROSSCONFIGURE_ARGS" != "x" ] ; then
     25
     26  if [ $force_untar = "1" ] ; then
     27    fixmake=1
     28  elif [ $auto_config = "1" ] && [ ! -d $package$version ] ; then
     29    fixmake=1
     30  fi
     31fi
     32
     33
    1234opt_run_untar $force_untar $auto_untar $package $version
    1335
     36if [ $fixmake = "1" ] ; then
     37
     38  cat $package$version/Makefile \
     39   | sed "s/^CC=gcc/CC=$crossHost-gcc/" \
     40   | sed "s/^AR=ar/AR=$crossHost-ar/" \
     41   | sed "s/^RANLIB=ranlib/RANLIB=$crossHost-ranlib/" \
     42   > $package$version/Makefile.cross
     43  /bin/mv $package$version/Makefile.cross $package$version/Makefile
     44fi
     45
     46
     47#custom opt_run_make 'compile'
    1448if [ $compile = 1 ] ; then
    1549    (cd $package$version ; make CFLAGS="$CFLAGS -fPIC")
    1650fi
    1751
     52#custom opt_run_make 'install'
    1853if [ $install = 1 ] ; then
    1954    (cd $package$version ; make install PREFIX=$prefix)
Note: See TracChangeset for help on using the changeset viewer.