Ignore:
Timestamp:
Apr 29, 2007, 3:34:20 PM (18 years ago)
Author:
bird
Message:

Build a.out and link omf. Drop -Zexe.

File:
1 edited

Legend:

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

    r3197 r3220  
    1111# Note that symbol extraction code gives wrong answers (sometimes?) on
    1212# gethostent and setsid.
    13 
    14 # Optimization (GNU make 3.74 cannot be loaded :-():
    15 emxload -m 30 sh.exe ls.exe tr.exe id.exe sed.exe # make.exe
    16 emxload -m 30 grep.exe egrep.exe fgrep.exe cat.exe rm.exe mv.exe cp.exe
    17 emxload -m 30 uniq.exe basename.exe sort.exe awk.exe echo.exe
    1813
    1914path_sep=\;
     
    10398libpth="$libpth $libemx"
    10499
    105 #set `cmd /c emxrev -f emxlibcm`
    106 #emxcrtrev=$5
    107 # indented to not put it into config.sh
    108   #_defemxcrtrev=-D_EMX_CRT_REV_=$emxcrtrev
    109   _defemxcrtrev=-D_EMX_CRT_REV_=61
    110 
    111100so='dll'
    112101
     
    135124fflushNULL="define"
    136125
    137 aout_d_shrplib='undef'
    138 aout_useshrplib='false'
    139 aout_obj_ext='.o'
    140 aout_lib_ext='.a'
    141 aout_ar='ar'
    142 aout_plibext='.a'
    143 aout_lddlflags="-Zdll $ld_dll_optimize"
    144 
    145 # Cannot have 32000K stack: get SYS0170  ?!
    146 aout_ldflags='-Zexe -Zstack 16000 '
    147 
    148 # To get into config.sh:
    149 aout_ldflags="$aout_ldflags"
    150 
    151 aout_d_fork='define'
    152 aout_ccflags="-DDOSISH -DOS2=2 -DEMBED -I. $_defemxcrtrev "
    153 aout_cppflags="-DDOSISH -DOS2=2 -DEMBED -I. $_defemxcrtrev "
    154 aout_use_clib='libc_dll'
    155 aout_usedl='undef'
    156 aout_archobjs="os2.o dl_os2.o"
    157 # Not listed in dynamic_ext, but needed for AOUT static_ext nevertheless
    158 aout_extra_static_ext="OS2::DLL"
    159 
    160 # variable which have different values for aout compile
    161 used_aout='d_shrplib useshrplib plibext lib_ext obj_ext ar plibext d_fork lddlflags ldflags ccflags use_clib usedl archobjs cppflags'
    162 
    163 if [ "$emxaout" != "" ]; then
    164     d_shrplib="$aout_d_shrplib"
    165     useshrplib="$aout_useshrplib"
    166     obj_ext="$aout_obj_ext"
    167     lib_ext="$aout_lib_ext"
    168     ar="$aout_ar"
    169     plibext="$aout_plibext"
    170     d_fork='define'
    171     lddlflags="$aout_lddlflags"
    172     ldflags="$aout_ldflags"
    173     ccflags="$aout_ccflags"
    174     cppflags="$aout_cppflags"
    175     use_clib="$aout_use_clib"
    176     usedl="$aout_usedl"
    177 else
    178     d_shrplib='define'
    179     useshrplib='true'
    180     obj_ext='.o'
    181     lib_ext='.lib'
    182     ar='emxomfar'
    183     plibext='.lib'
    184     d_fork='define'
    185     lddlflags="-Zdll -Zomf "
    186     # Recursive regmatch may eat 2.5M of stack alone.
    187     ldflags='-Zexe -Zomf -Zstack 32000 '
    188     ccflags="-Zomf -DDOSISH -DOS2=2 -DEMBED -I. $_defemxcrtrev"
    189     use_clib='libc_dll'
    190     usedl='define'
    191 fi
     126# Not listed in dynamic_ext, but needed for static_ext nevertheless
     127extra_static_ext="OS2::DLL"
     128
     129d_shrplib='define'
     130useshrplib='true'
     131obj_ext='.o'
     132lib_ext='.a'
     133ar='ar'
     134plibext='.a'
     135d_fork='define'
     136lddlflags="-Zdll -Zomf "
     137# Recursive regmatch may eat 2.5M of stack alone.
     138ldflags='-Zomf -Zhigh-mem -Zstack 32000 '
     139ccflags="-DDOSISH -DOS2=2 -DEMBED -I."
     140use_clib='libc_dll'
     141usedl='define'
     142
    192143
    193144# indented to miss config.sh
     
    261212lns='cp'
    262213
    263 nm_opt='-p'
     214nm_opt='-pa'
    264215
    265216####### We define these functions ourselves
     
    424375case "$usethreads" in
    425376$define|true|[yY]*)
    426         ccflags="$ccflags"
    427         cppflags="$cppflags"  # Do we really need to set this?
    428         aout_ccflags="-DUSE_THREADS $aout_ccflags"
    429         aout_cppflags="-DUSE_THREADS $aout_cppflags"
    430         aout_lddlflags="$aout_lddlflags"
    431         aout_ldflags="$aout_ldflags"
     377        ccflags="$ccflags -DUSE_THREADS"
     378        cppflags="$cppflags -DUSE_THREADS"  # Do we really need to set this?
    432379        ;;
    433380esac
Note: See TracChangeset for help on using the changeset viewer.