develooper Front page | perl.perl5.porters | Postings from March 2007

[PATCH] Default to ELF on FreeBSD when objformat is not there

Thread Next
From:
Anton Berezin
Date:
March 8, 2007 03:08
Subject:
[PATCH] Default to ELF on FreeBSD when objformat is not there
Message ID:
20070308110845.GA24332@heechee.tobez.org
FreeBSD 7.0 has removed the objformat utility;  aout is not supported for
quite some time, so it's time to revert the condition in the hints:

--- hints/freebsd.sh.orig	Thu Mar  8 12:02:40 2007
+++ hints/freebsd.sh	Thu Mar  8 12:03:15 2007
@@ -116,17 +116,17 @@ case "$osvers" in
 
 *)
         objformat=`/usr/bin/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 [ x$objformat = xaout ]; then
             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'
+        else
+            libpth="/usr/lib /usr/local/lib"
+            glibpth="/usr/lib /usr/local/lib"
+            ldflags="-Wl,-E "
+            lddlflags="-shared "
         fi
         cccdlflags='-DPIC -fPIC'
         ;;

-- 
We're going for 'working' here. 'clean' is for people with skills...
-- Flemming Jacobsen

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About