X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Flinux.sh;h=913cfd0fd1a00ae8d6275ad77e0fce88188b5a7c;hb=45c9e83b07a146ad42e19f44b9def27ecbdcd9e2;hp=c1172caba276851d542802c7ca39761cda4bfb06;hpb=6d3b1ec5da0caeccfaf3d7c3d5d9837fd5f25cc3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/linux.sh b/hints/linux.sh index c1172ca..913cfd0 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -63,14 +63,11 @@ ignore_versioned_solibs='y' # intending to replace /usr/bin/perl (at least just yet). # This change makes linux consistent with most other unix platforms # in having a default of prefix=/usr/local. -# These notes can probably safely be removed in 5.006_50 and beyond. +# These notes can probably safely be removed in 5.005_50 and beyond. # # 9 April 1999 Andy Dougherty # -# gcc-2.6.3 defines _G_HAVE_BOOL to 1, but doesn't actually supply bool. -ccflags="-Dbool=char -DHAS_BOOL $ccflags" - # BSD compatability library no longer needed # 'kaffe' has a /usr/lib/libnet.so which is not at all relevent for perl. set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ net / /'` @@ -258,6 +255,15 @@ fi #'osfmach3ppc') ccdlflags='-Wl,-E' ;; #esac +case "`uname -r`" in +sparc-linux) + case "$cccdlflags" in + *-fpic*) cccdlflags="`echo $cccdlflags|sed 's/-fpic/-fPIC/'`" ;; + *) cccdlflags="$cccdlflags -fPIC" ;; + esac + ;; +esac + # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. cat > UU/usethreads.cbu <<'EOCBU' @@ -270,3 +276,16 @@ $define|true|[yY]*) ;; esac EOCBU + +cat > UU/uselargefiles.cbu <<'EOCBU' +# This script UU/uselargefiles.cbu will get 'called-back' by Configure +# after it has prompted the user for whether to use large files. +case "$uselargefiles" in +''|$define|true|[yY]*) +# Keep this in the left margin. +ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" + + ccflags="$ccflags $ccflags_uselargefiles" + ;; +esac +EOCBU