diff options
author | markm <markm@FreeBSD.org> | 1998-09-15 10:55:21 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1998-09-15 10:55:21 +0000 |
commit | aa2d4df340b0463283fcffabf2aacc362dd6ff56 (patch) | |
tree | 715475341baad1cb3d77d1cd194c3d0ec47f4e81 /contrib/perl5 | |
parent | ed7cc860374c899ac82fe41832afd84295494cc8 (diff) | |
download | FreeBSD-src-aa2d4df340b0463283fcffabf2aacc362dd6ff56.zip FreeBSD-src-aa2d4df340b0463283fcffabf2aacc362dd6ff56.tar.gz |
Fix for the 2.2.7 a.out --> 3.0 ELF cross-build.
I need report backs on this one, guys!!
Diffstat (limited to 'contrib/perl5')
-rw-r--r-- | contrib/perl5/hints/freebsd.sh | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/contrib/perl5/hints/freebsd.sh b/contrib/perl5/hints/freebsd.sh index 0dbe323..5ed604a 100644 --- a/contrib/perl5/hints/freebsd.sh +++ b/contrib/perl5/hints/freebsd.sh @@ -99,20 +99,36 @@ esac case "$osvers" in 0.*|1.0*) ;; -3.0*) objformat=`/usr/bin/objformat` - if [ x$objformat = xelf ]; then - libpth="/usr/lib /usr/local/lib" +# allow a 2.2.* a.out --> 3.0 ELF to work. +2.2*) objformat=`objformat` + if [ x$objformat = xelf ]; then + libpth="/usr/lib /usr/local/lib" glibpth="/usr/lib /usr/local/lib" - ldflags="-Wl,-E " - lddlflags="-shared " - else - if [ -e /usr/lib/aout ]; then - libpth="/usr/lib/aout /usr/local/lib /usr/lib" - glibpth="/usr/lib/aout /usr/local/lib /usr/lib" - fi - lddlflags='-Bshareable' - fi - cccdlflags='-DPIC -fpic' + ldflags="-Wl,-E " + lddlflags="-shared " + else + if [ -e /usr/lib/aout ]; then + libpth="/usr/lib/aout /usr/local/lib /usr/lib" + glibpth="/usr/lib/aout /usr/local/lib /usr/lib" + fi + lddlflags='-Bshareable' + fi + cccdlflags='-DPIC -fpic' + ;; +3.0*) objformat=`objformat` + if [ x$objformat = xelf ]; then + libpth="/usr/lib /usr/local/lib" + glibpth="/usr/lib /usr/local/lib" + ldflags="-Wl,-E " + lddlflags="-shared " + else + if [ -e /usr/lib/aout ]; then + libpth="/usr/lib/aout /usr/local/lib /usr/lib" + glibpth="/usr/lib/aout /usr/local/lib /usr/lib" + fi + lddlflags='-Bshareable' + fi + cccdlflags='-DPIC -fpic' ;; *) cccdlflags='-DPIC -fpic' |