Changeset 3193 for trunk


Ignore:
Timestamp:
Apr 22, 2007, 2:10:20 PM (18 years ago)
Author:
bird
Message:

we're *not* emx and don't want anything to do with any stray emx installations on the system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/perl/hints/os2.sh

    r3188 r3193  
    1111# Note that symbol extraction code gives wrong answers (sometimes?) on
    1212# gethostent and setsid.
     13set -x
    1314
    1415# Optimization (GNU make 3.74 cannot be loaded :-():
     
    3738 set $MANPATH
    3839 tryman="$@"
    39  set $LIBRARY_PATH
     40 set `gcc -print-search-dirs | grep libraries | sed -e "s/^libraries: *=//" `
    4041 libemx="$@"
    4142 set $C_INCLUDE_PATH
     
    4647 
    4748 # indented to avoid having it *two* times at start
    48  libemx="`./UU/loc os2.a /emx/lib $libemx`"
    49 
    50 usrinc="`./UU/loc stdlib.h /emx/include $usrinc`"
     49 libemx="`./UU/loc libc_alias.a $libemx`"
     50
     51usrinc="`./UU/loc stdlib.h $usrinc`"
    5152usrinc="`dirname $usrinc | tr '\\\' '/'`"
    5253libemx="`dirname $libemx | tr '\\\' '/'`"
     
    5556  sysman="$tryman/man1"
    5657else
    57   sysman="`./UU/loc . /man/man1 c:/man/man1 c:/usr/man/man1 d:/man/man1 d:/usr/man/man1 e:/man/man1 e:/usr/man/man1 f:/man/man1 f:/usr/man/man1 g:/man/man1 g:/usr/man/man1 /usr/man/man1`"
    58 fi
    59 
    60 emxpath="`dirname $libemx`"
     58  sysman="`./UU/loc . /man/man1 $UNIXROOT/usr/share/man/man1 $UNIXROOT/usr/man/man1 c:/man/man1 c:/usr/man/man1 d:/man/man1 d:/usr/man/man1 e:/man/man1 e:/usr/man/man1 f:/man/man1 f:/usr/man/man1 g:/man/man1 g:/usr/man/man1 /usr/man/man1`"
     59fi
     60
     61#emxpath="`dirname $libemx`"
     62#if test ! -d "$emxpath"; then
     63#  emxpath="`./UU/loc . /emx c:/emx d:/emx e:/emx f:/emx g:/emx h:/emx /emx`"
     64#fi
     65emxpath="`which gcc.exe`"
     66emxpath="`dirname $emxpath`"
     67emxpath="`dirname $emxpath`"
    6168if test ! -d "$emxpath"; then
    62   emxpath="`./UU/loc . /emx c:/emx d:/emx e:/emx f:/emx g:/emx h:/emx /emx`"
     69  emxpath="$UNIXROOT/usr"
    6370fi
    6471
     
    7077    libemx="$LIBRARY_PATH"
    7178  else
    72     libemx="`./UU/loc . X c:/emx/lib d:/emx/lib e:/emx/lib f:/emx/lib g:/emx/lib h:/emx/lib /emx/lib`"
     79    libemx="`./UU/loc . X $UNIXROOT/usr/lib $UNIXROOT/lib $UNIXROOT/usr/local/lib`"
    7380  fi
    7481fi
     
    8188      usrinc="$C_INCLUDE_PATH"
    8289    else
    83       usrinc="`./UU/loc . X c:/emx/include d:/emx/include e:/emx/include f:/emx/include g:/emx/include h:/emx/include /emx/include`"
     90      usrinc="`./UU/loc . X $UNIXROOT/usr/include $UNIXROOT/usr/local/include`"
    8491    fi
    8592  fi
    8693fi
    8794
    88 rsx="`./UU/loc rsx.exe undef $pth`"
     95#rsx="`./UU/loc rsx.exe undef $pth`"
    8996
    9097if test "$libemx" = "X"; then echo "Cannot find C library!" >&2; fi
     
    9299# Acute backslashitis:
    93100libpth="`echo \"$LIBRARY_PATH\" | tr ';\\\' ' /'`"
    94 libpth="$libpth $libemx/mt $libemx"
    95 
    96 set `cmd /c emxrev -f emxlibcm`
    97 emxcrtrev=$5
     101libpth="$libpth $libemx"
     102
     103#set `cmd /c emxrev -f emxlibcm`
     104#emxcrtrev=$5
    98105# indented to not put it into config.sh
    99   _defemxcrtrev=-D_EMX_CRT_REV_=$emxcrtrev
     106  #_defemxcrtrev=-D_EMX_CRT_REV_=$emxcrtrev
     107  _defemxcrtrev=-D_EMX_CRT_REV_=61
    100108
    101109so='dll'
     
    133141aout_lddlflags="-Zdll $ld_dll_optimize"
    134142
    135 # -D__ST_MT_ERRNO__ allows a quick relink with -Zmtd to check problems
    136 # which may be due to linking with -Zmtd DLLs
    137 
    138143# Cannot have 32000K stack: get SYS0170  ?!
    139 if [ $emxcrtrev -ge 50 ]; then
    140     aout_ldflags='-Zexe -Zsmall-conv -Zstack 16000 -D__ST_MT_ERRNO__'
    141 else
    142     aout_ldflags='-Zexe -Zstack 16000 -D__ST_MT_ERRNO__'
    143 fi
     144aout_ldflags='-Zexe -Zstack 16000 '
    144145
    145146# To get into config.sh:
     
    149150aout_ccflags="-DDOSISH -DOS2=2 -DEMBED -I. $_defemxcrtrev "
    150151aout_cppflags="-DDOSISH -DOS2=2 -DEMBED -I. $_defemxcrtrev "
    151 aout_use_clib='c'
     152aout_use_clib='libc_dll'
    152153aout_usedl='undef'
    153154aout_archobjs="os2.o dl_os2.o"
     
    165166    ar="$aout_ar"
    166167    plibext="$aout_plibext"
    167     if [ $emxcrtrev -lt 50 ]; then
    168         d_fork="$aout_d_fork"
    169     fi
     168    d_fork='define'
    170169    lddlflags="$aout_lddlflags"
    171170    ldflags="$aout_ldflags"
     
    181180    ar='emxomfar'
    182181    plibext='.lib'
    183     if [ $emxcrtrev -ge 50 ]; then
    184         d_fork='define'
    185     else
    186         d_fork='undef'
    187     fi
     182    d_fork='define'
    188183    lddlflags="-Zdll -Zomf "
    189184    # Recursive regmatch may eat 2.5M of stack alone.
    190185    ldflags='-Zexe -Zomf -Zstack 32000 '
    191     if [ $emxcrtrev -ge 50 ]; then
    192         ccflags="-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. $_defemxcrtrev"
    193     else
    194         ccflags="-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -DEMX_BAD_SBRK $_defemxcrtrev"
    195     fi
    196     use_clib='c_import'
     186    ccflags="-Zomf -DDOSISH -DOS2=2 -DEMBED -I. $_defemxcrtrev"
     187    use_clib='libc_dll'
    197188    usedl='define'
    198189fi
     
    207198libperl="libperl${plibext}"
    208199
    209 #libc="/emx/lib/st/c_import$lib_ext"
    210 libc="$libemx/mt/$use_clib$lib_ext"
    211 
    212 if test -r "$libemx/c_alias$lib_ext"; then
    213     libnames="$libemx/c_alias$lib_ext"
     200
     201libc="$libemx/$use_clib$lib_ext"
     202
     203if test -r "$libemx/libc_alias$lib_ext"; then
     204    libnames="$libemx/libc_alias$lib_ext"
    214205fi
    215206# otherwise puts -lc ???
     
    431422case "$usethreads" in
    432423$define|true|[yY]*)
    433         ccflags="-Zmt $ccflags"
    434         cppflags="-Zmt $cppflags"  # Do we really need to set this?
     424        ccflags="$ccflags"
     425        cppflags="$cppflags"  # Do we really need to set this?
    435426        aout_ccflags="-DUSE_THREADS $aout_ccflags"
    436427        aout_cppflags="-DUSE_THREADS $aout_cppflags"
    437         aout_lddlflags="-Zmt $aout_lddlflags"
    438         aout_ldflags="-Zmt $aout_ldflags"
     428        aout_lddlflags="$aout_lddlflags"
     429        aout_ldflags="$aout_ldflags"
    439430        ;;
    440431esac
Note: See TracChangeset for help on using the changeset viewer.