X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fos2.sh;h=6309b198fcd4a1389dd659157fe297eedf3ec7b6;hb=c7cffa0b862541c21ec66e4efd2d80e4f0a2f142;hp=b2f962d2ea90b5c8ef5b67a6966e5b7ebbac410d;hpb=1973dd96bef9ac903e8ae60907e63e38e591ff1a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/os2.sh b/hints/os2.sh index b2f962d..6309b19 100644 --- a/hints/os2.sh +++ b/hints/os2.sh @@ -131,19 +131,23 @@ aout_lib_ext='.a' aout_ar='ar' aout_plibext='.a' aout_lddlflags="-Zdll $ld_dll_optimize" + +# -D__ST_MT_ERRNO__ allows a quick relink with -Zmtd to check problems +# which may be due to linking with -Zmtd DLLs + # Cannot have 32000K stack: get SYS0170 ?! if [ $emxcrtrev -ge 50 ]; then - aout_ldflags='-Zexe -Zsmall-conv -Zstack 16000' + aout_ldflags='-Zexe -Zsmall-conv -Zstack 16000 -D__ST_MT_ERRNO__' else - aout_ldflags='-Zexe -Zstack 16000' + aout_ldflags='-Zexe -Zstack 16000 -D__ST_MT_ERRNO__' fi # To get into config.sh: aout_ldflags="$aout_ldflags" aout_d_fork='define' -aout_ccflags="-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. $_defemxcrtrev" -aout_cppflags="-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. $_defemxcrtrev" +aout_ccflags="-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. $_defemxcrtrev -D__ST_MT_ERRNO__" +aout_cppflags="-DDOSISH -DPERL_IS_AOUT -DOS2=2 -DEMBED -I. $_defemxcrtrev -D__ST_MT_ERRNO__" aout_use_clib='c' aout_usedl='undef' aout_archobjs="os2.o dl_os2.o" @@ -271,6 +275,8 @@ d_strtoll='define' d_strtoull='define' d_getprior='define' d_setprior='define' +d_usleep='define' +d_usleepproto='define' # The next two are commented. pdksh handles #!, extproc gives no path part. # sharpbang='extproc ' @@ -450,11 +456,7 @@ fi cd ./os2/OS2 -if ! test -d ../../ext/OS2 ; then - mkdir ../../ext/OS2 -fi - -cp -rfu * ../../ext/OS2/ +cp -rfu * ../../ext/ # Install tests: