This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #33998] [PATCH] Support for GNU/kFreeBSD
authorrmh@debian.org <perlbug-followup@perl.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:24:48 +0000 (11:24 +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/metaconfig@23908

U/modified/usenm.U
U/perl/dlsrc.U
U/perl/libperl.U

index 30bfa83..26767bd 100644 (file)
@@ -129,7 +129,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
index 6e9c3d9..dbd7837 100644 (file)
@@ -212,7 +212,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' ;;
@@ -260,7 +260,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 ;;
index 07b9a52..09679ae 100644 (file)
@@ -128,7 +128,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
@@ -215,7 +215,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)