[perl #33998] [PATCH] Support for GNU/kFreeBSD
authorRobert Millan <rmh@debian.org>
Mon, 31 Jan 2005 07:37:55 +0000 (07:37 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 31 Jan 2005 11:33:14 +0000 (11:33 +0000)
From: "rmh@debian.org (via RT)" <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-33998-106860.15.2609323921089@perl.org>

p4raw-id: //depot/perl@23909

13 files changed:
Configure
ext/DynaLoader/hints/gnukfreebsd.pl [new file with mode: 0644]
ext/DynaLoader/hints/gnuknetbsd.pl [new file with mode: 0644]
ext/NDBM_File/hints/gnukfreebsd.pl [new file with mode: 0644]
ext/NDBM_File/hints/gnuknetbsd.pl [new file with mode: 0644]
ext/ODBM_File/hints/gnukfreebsd.pl [new file with mode: 0644]
ext/ODBM_File/hints/gnuknetbsd.pl [new file with mode: 0644]
ext/POSIX/hints/gnukfreebsd.pl [new file with mode: 0644]
ext/POSIX/hints/gnuknetbsd.pl [new file with mode: 0644]
ext/Storable/hints/gnukfreebsd.pl [new file with mode: 0644]
ext/Storable/hints/gnuknetbsd.pl [new file with mode: 0644]
hints/gnukfreebsd.sh [new file with mode: 0644]
hints/gnuknetbsd.sh [new file with mode: 0644]

index 57fc01f..e52f8e9 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Fri Jan 21 16:11:32 MET 2005 [metaconfig 3.0 PL70]
+# Generated on Mon Jan 31 12:56:14 CET 2005 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.org)
 
 cat >c1$$ <<EOF
@@ -7105,7 +7105,7 @@ esac
 : for archive libraries.  Thank you, Linux.
 case "$nm_so_opt" in
 '')    case "$myuname" in
-       *linux*)
+       *linux*|gnu*)
                if $nm --help | $grep 'dynamic' > /dev/null 2>&1; then
                        nm_so_opt='--dynamic'
                fi
@@ -7627,7 +7627,7 @@ EOM
                              '') dflt="$dflt +vnocompatwarnings" ;;
                              esac
                              ;;        
-                       linux|irix*)    dflt='-shared' ;;
+                       linux|irix*|gnu*)       dflt='-shared' ;;
                        next)  dflt='none' ;;
                        solaris) dflt='-G' ;;
                        sunos) dflt='-assert nodefinitions' ;;
@@ -7674,7 +7674,7 @@ say "none".
 EOM
     case "$ccdlflags" in
     '') case "$osname" in
-           linux|hpux) dflt='-Wl,-E' ;;
+           linux|hpux|gnu*)    dflt='-Wl,-E' ;;
            next|sunos) dflt='none' ;;
            *)          dflt='none' ;;
            esac ;;
@@ -7771,7 +7771,7 @@ true)
                        dflt=libperl.5.$so
                        # XXX How handle the --version stuff for MAB?
                        ;;
-               linux*)  # ld won't link with a bare -lperl otherwise.
+               linux*|gnu*)  # ld won't link with a bare -lperl otherwise.
                        dflt=libperl.$so
                        ;;
                cygwin*) # ld links against an importlib
@@ -7858,7 +7858,7 @@ if "$useshrplib"; then
        freebsd|netbsd|openbsd|interix)
                xxx="-Wl,-R$shrpdir"
                ;;
-       bsdos|linux|irix*|dec_osf)
+       bsdos|linux|irix*|dec_osf|gnu*)
                xxx="-Wl,-rpath,$shrpdir"
                ;;
        next)
diff --git a/ext/DynaLoader/hints/gnukfreebsd.pl b/ext/DynaLoader/hints/gnukfreebsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/DynaLoader/hints/gnuknetbsd.pl b/ext/DynaLoader/hints/gnuknetbsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/NDBM_File/hints/gnukfreebsd.pl b/ext/NDBM_File/hints/gnukfreebsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/NDBM_File/hints/gnuknetbsd.pl b/ext/NDBM_File/hints/gnuknetbsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/ODBM_File/hints/gnukfreebsd.pl b/ext/ODBM_File/hints/gnukfreebsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/ODBM_File/hints/gnuknetbsd.pl b/ext/ODBM_File/hints/gnuknetbsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/POSIX/hints/gnukfreebsd.pl b/ext/POSIX/hints/gnukfreebsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/POSIX/hints/gnuknetbsd.pl b/ext/POSIX/hints/gnuknetbsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/Storable/hints/gnukfreebsd.pl b/ext/Storable/hints/gnukfreebsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/ext/Storable/hints/gnuknetbsd.pl b/ext/Storable/hints/gnuknetbsd.pl
new file mode 100644 (file)
index 0000000..6e37b40
--- /dev/null
@@ -0,0 +1 @@
+do './hints/linux.pl';
diff --git a/hints/gnukfreebsd.sh b/hints/gnukfreebsd.sh
new file mode 100644 (file)
index 0000000..37136ce
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/sh
+. ./hints/linux.sh
diff --git a/hints/gnuknetbsd.sh b/hints/gnuknetbsd.sh
new file mode 100644 (file)
index 0000000..37136ce
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/sh
+. ./hints/linux.sh