summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>2003-12-18 06:10:29 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-01-01 17:29:21 +0000
commit1933e12cd0d32c774bd7f483285802de52dc8cbc (patch)
treea2cdc2316a1e9964350869b0754cf42977a94088 /hints
parentb08eb2a88581a6164b7fe182bf291c86bfb3c690 (diff)
downloadperl-1933e12cd0d32c774bd7f483285802de52dc8cbc.tar.gz
OS/2 update
Message-ID: <20031218221029.GA7898@math.berkeley.edu> p4raw-id: //depot/perl@22032
Diffstat (limited to 'hints')
-rw-r--r--hints/os2.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/hints/os2.sh b/hints/os2.sh
index a3fc0b6c50..8c8ef21bb2 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"