develooper Front page | perl.perl5.porters | Postings from April 2010

[perl #74564] hints/freebsd.sh not freebsd 7+ aware

Thread Next
From:
Todd Rinaldo
Date:
April 22, 2010 01:06
Subject:
[perl #74564] hints/freebsd.sh not freebsd 7+ aware
Message ID:
rt-3.6.HEAD-6227-1271891949-1794.74564-75-0@perl.org
# New Ticket Created by  Todd Rinaldo 
# Please include the string:  [perl #74564]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74564 >


When running configure on FreeBSD 7+, the following error message is printed when hints are run:

./hints/freebsd.sh: /usr/bin/objformat: not found

The reason for this is outlined in this email from Feb 2007
http://lists.freebsd.org/pipermail/freebsd-ports/2007-February/038523.html

As hints run now, it should be executing the non-a.out code, so the below patch should be applied to fix this. 

diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index 7d543be..cc6484b 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -114,7 +114,7 @@ case "$osvers" in
        lddlflags="-Bshareable $lddlflags"
        ;;
 
-*)
+3*|4*|5*|6*)
         objformat=`/usr/bin/objformat`
         if [ x$objformat = xaout ]; then
             if [ -e /usr/lib/aout ]; then
@@ -130,6 +130,13 @@ case "$osvers" in
         fi
         cccdlflags='-DPIC -fPIC'
         ;;
+*)
+       libpth="/usr/lib /usr/local/lib"
+       glibpth="/usr/lib /usr/local/lib"
+       ldflags="-Wl,-E "
+        lddlflags="-shared "
+        cccdlflags='-DPIC -fPIC'
+       ;;
 esac
 
 case "$osvers" in


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