X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fdos_djgpp.sh;h=3ae9d22ae1a00dc49c0964542864926fdccc9e96;hb=21328108d38d0774b3ffd43b914ff9323c07c8d4;hp=85455c385221d2dff9ee9bcd5d9a25b3f3ccfbbe;hpb=39e571d41067215a80f26089b260f1418caeb36b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/dos_djgpp.sh b/hints/dos_djgpp.sh index 85455c3..3ae9d22 100644 --- a/hints/dos_djgpp.sh +++ b/hints/dos_djgpp.sh @@ -2,11 +2,13 @@ # Original by Laszlo Molnar # 971015 - archname changed from 'djgpp' to 'dos-djgpp' +# 971210 - threads support +# 000222 - added -DPERL_EXTERNAL_GLOB to ccflags archname='dos-djgpp' archobjs='djgpp.o' path_sep=\; -startsh="#!sh" +startsh="#! /bin/sh" cc='gcc' ld='gcc' @@ -22,12 +24,12 @@ firstmakefile='GNUmakefile' exe_ext='.exe' randbits=31 - -ln='cp' # no REAL ln on dos lns='cp' usenm='true' -d_bincompat3='undef' + +# this reportedly causes compile errors in system includes +i_ieeefp='undef' d_link='undef' # these are empty functions in libc.a d_symlink='undef' @@ -38,10 +40,14 @@ startperl='#!perl' case "X$optimize" in X) - optimize="-O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2" + optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2" + ldflags='-s' + ;; + X*) + ldflags=' ' ;; esac -ldflags='-s' +ccflags="$ccflags -DPERL_EXTERNAL_GLOB" usemymalloc='n' timetype='time_t' @@ -51,13 +57,20 @@ archlib=$privlib sitelib=$privlib/site sitearch=$sitelib -: set up the translation script tr +eagain='EAGAIN' +rd_nodata='-1' -cat >../UU/tr < UU/usethreads.cbu <<'EOCBU' +case "$usethreads" in +$define|true|[yY]*) + set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'` + shift + libswanted="$*" + ;; esac -exec tr.exe "\$@" -EOSC +EOCBU + +useperlio='undef' +uselargefiles='undef'