X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Flinux.sh;h=e9af509ab58e5f2f4eda81ce4a12bb6f17c7f7c9;hb=6683669a6df1339a4d1816323a59ecded54b73e5;hp=0339e8fcf6ae2bcae81e9c3449f76eade1b225d3;hpb=8cef0c70022a42ce6ce5ecba75ca3cb331d9c87e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/linux.sh b/hints/linux.sh index 0339e8f..e9af509 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -43,17 +43,30 @@ ignore_versioned_solibs='y' # available via anonymous FTP at tsx-11.mit.edu in # /pub/linux/docs/linux-standards/fsstnd. # Allow a command line override, e.g. Configure -Dprefix=/foo/bar -# Also, if the user has specified -Uinstallusrbinperl and hasn't -# specified a prefix, then set prefix to /usr/local. -case "$prefix" in -'') - case "$installusrbinperl" in - "$undef") - prefix='/usr/local' ;; - esac -*) - prefix='/usr' ;; -esac +# +# Addendum for 5.005_57 and beyond: +# +# However, most Linux users probably already have a /usr/bin/perl. +# We can't know whether the current user is intending to *replace* +# that /usr/bin/perl or whether the user is intending to install +# a *different* installation. +# +# Here is what we used to do: +# Allow a command line override, e.g. Configure -Dprefix=/foo/bar +# case "$prefix" in +# '') prefix='/usr' ;; +# esac +# +# For now, let's assume that most Linux users get their /usr/bin/perl +# from some packaging system, so that those compiling from source are +# probably the more experimental folks and hence probably aren't +# 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. +# +# 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" @@ -245,6 +258,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'