Ticket #1031: tools-jam-src-build.sh.patch

File tools-jam-src-build.sh.patch, 2.9 KB (added by ssolie, 15 years ago)
  • tools/jam/src/build.sh

    diff -N -r -u -b boost_1_34_0/tools/jam/src/build.sh boost_1_34_0_amiga/tools/jam/src/build.sh
    old new  
    2929    echo "###     ./build.sh gcc"
    3030    echo "###"
    3131    echo "### Toolsets supported by this script are:"
    32     echo "###     acc, como, darwin, gcc, intel-linux, kcc, kylix, mipspro,"
    33     echo "###     mingw(msys), qcc, sunpro, tru64cxx, vacpp"
     32    echo "###     acc, amiga, como, darwin, gcc, intel-linux, kcc, kylix,"
     33    echo "###     mipspro, mingw(msys), qcc, sunpro, tru64cxx, vacpp"
    3434    echo "###"
    3535    echo "### A special toolset; cc, is available which is used as a fallback"
    3636    echo "### when a more specific toolset is not found and the cc command is"
     
    6464    if test -r /mingw/bin/gcc ; then
    6565        BOOST_JAM_TOOLSET=mingw
    6666        BOOST_JAM_TOOLSET_ROOT=/mingw/
     67    elif test_uname AmigaOS; then BOOST_JAM_TOOLSET=amiga
    6768    elif test_uname Darwin ; then BOOST_JAM_TOOLSET=darwin
    6869    elif test_uname IRIX ; then BOOST_JAM_TOOLSET=mipspro
    6970    elif test_uname IRIX64 ; then BOOST_JAM_TOOLSET=mipspro
     
    134135    BOOST_JAM_CC=cc
    135136    ;;
    136137   
     138    amiga)
     139    BOOST_JAM_CC="gcc -mcrt=clib2"
     140    BOOST_JAM_LIBS=-lunix
     141    ;;
     142
    137143    intel-linux)
    138144    if test -r /opt/intel/cc/9.0/bin/iccvars.sh ; then
    139145        BOOST_JAM_TOOLSET_ROOT=/opt/intel/cc/9.0/
     
    233239 strings.c filesys.c builtins.c pwd.c class.c native.c w32_getreg.c\
    234240 modules/set.c modules/path.c modules/regex.c modules/property-set.c\
    235241 modules/sequence.c modules/order.c\
    236  execnt.c filent.c"
     242 execnt.c filent.c execamiga.c fileamiga.c pathamiga.c"
    237243
    238244BJAM_UPDATE=
    239245if test "$1" = "--update" -o "$2" = "--update" -o "$3" = "--update" -o "$4" = "--update"  ; then
     
    247253    echo_run rm -rf bootstrap
    248254    echo_run mkdir bootstrap
    249255    if test ! -r jamgram.y -o ! -r jamgramtab.h ; then
    250         echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_YYACC} ${YYACC_SOURCES}
     256        echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_YYACC} ${YYACC_SOURCES} ${BOOST_JAM_LIBS}
    251257        if test -x "./bootstrap/yyacc0" ; then
    252258            echo_run ./bootstrap/yyacc0 jamgram.y jamgramtab.h jamgram.yy
    253259        fi
     
    261267        mv -f y.tab.h jamgram.h
    262268    fi
    263269    if test ! -r jambase.c ; then
    264         echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_MKJAMBASE} ${MKJAMBASE_SOURCES}
     270        echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_MKJAMBASE} ${MKJAMBASE_SOURCES} ${BOOST_JAM_LIBS}
    265271        if test -x "./bootstrap/mkjambase0" ; then
    266272            echo_run ./bootstrap/mkjambase0 jambase.c Jambase
    267273        fi
    268274    fi
    269     echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_JAM} ${BJAM_SOURCES}
     275    echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_JAM} ${BJAM_SOURCES} ${BOOST_JAM_LIBS}
    270276fi
    271277if test -x "./bootstrap/jam0" ; then
    272278    if test "${BJAM_UPDATE}" != "update" ; then