X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fdos_djgpp.sh;h=d50bca4b25e0528a7d67138632362c686e76c971;hb=2220a07647482cb163ce6787c70ef1e59ae78241;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..d50bca4 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' @@ -42,6 +43,7 @@ case "X$optimize" in optimize="-O2 -malign-loops=2 -malign-jumps=2 -malign-functions=2" ;; esac +ccflags="$ccflags -DPERL_EXTERNAL_GLOB" ldflags='-s' usemymalloc='n' timetype='time_t' @@ -55,19 +57,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$define" ]; then - set `echo X "$libswanted "| sed -e 's/ c / gthreads c /'` - shift - libswanted="$*" -fi +EOCBU