X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fdos_djgpp.sh;h=ebbd786b45e6c10662de4a979a62738401b6f47d;hb=973abda3de19f81f0355443e0fb0b20961973762;hp=9878cc33fc229df2dc6eb40007b002ad8a0bd661;hpb=9e48b294a088693583142bb2058db509a62bb303;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/dos_djgpp.sh b/hints/dos_djgpp.sh index 9878cc3..ebbd786 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,14 @@ 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" ]; then - set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'` - shift - libswanted="$*" -fi +EOCBU