X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fdos_djgpp.sh;h=3ae9d22ae1a00dc49c0964542864926fdccc9e96;hb=8d4e7e3907672fbc74df892b580e2e92408bf462;hp=1b4a845fc219274a8a8097ca88b8430850a93fa5;hpb=e5c9fcd0420f2862565625a4bd5596204107f54f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/dos_djgpp.sh b/hints/dos_djgpp.sh index 1b4a845..3ae9d22 100644 --- a/hints/dos_djgpp.sh +++ b/hints/dos_djgpp.sh @@ -3,11 +3,12 @@ # 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' @@ -23,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' @@ -40,9 +41,13 @@ startperl='#!perl' case "X$optimize" in X) 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' @@ -55,19 +60,17 @@ sitearch=$sitelib eagain='EAGAIN' rd_nodata='-1' -: set up the translation script tr - -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 - -if [ "X$usethreads" = "X$define" ]; then - set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'` - shift - libswanted="$*" -fi +EOCBU + +useperlio='undef' +uselargefiles='undef'