[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    Re: bug#10029: Fix GNU/Hurd linker flags & such
From:       Peter O'Gorman <peter () pogma ! com>
Date:       2012-02-21 17:22:16
Message-ID: 4F43D2C8.6050001 () pogma ! com
[Download RAW message or body]

Hello Samuel,

I pushed this, thank you.

Peter

On 11/12/2011 08:21 AM, Samuel Thibault wrote:
> Samuel Thibault, le Sat 12 Nov 2011 14:52:20 +0100, a =E9crit :
>> libtool is missing the GNU/Hurd case in a few places, resulting to bui=
ld
>> issues in Debin GNU/Hurd, the attached patch fixes it, could you apply
>> it please?
>
> Ooops, sorry, I forgot to remove the existing bits, which are basically
> the same, but outdated and shall be factorized with other GNU platforms=
.
> Here is an updated patch.
>
> Samuel

["0001-Improve-GNU-Hurd-support.patch" (text/x-patch)]

From 98c159c3bbfaed0c007e935cbb976fdb76a2d0ae Mon Sep 17 00:00:00 2001
From: Samuel Thibault <samuel.thibault@gnu.org>
Date: Tue, 21 Feb 2012 08:51:40 -0600
Subject: [PATCH] Improve GNU/Hurd support.

* m4/libtool.m4: Add gnu* match where it was missing.
---
 m4/libtool.m4 |   28 +++++-----------------------
 1 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index ac4381c..e07ae4a 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2516,17 +2516,6 @@ freebsd* | dragonfly*)
   esac
   ;;
 
-gnu*)
-  version_type=linux # correct to gnu/linux during the next big refactor
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='$libname$release$shared_ext$versuffix \
                $libname$release$shared_ext$major $libname$shared_ext'
-  soname_spec='$libname$release$shared_ext$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  ;;
-
 haiku*)
   version_type=linux # correct to gnu/linux during the next big refactor
   need_lib_prefix=no
@@ -2643,7 +2632,7 @@ linux*oldld* | linux*aout* | linux*coff*)
   ;;
 
 # This must be glibc/ELF.
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   version_type=linux # correct to gnu/linux during the next big refactor
   need_lib_prefix=no
   need_version=no
@@ -3247,10 +3236,6 @@ freebsd* | dragonfly*)
   fi
   ;;
 
-gnu*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
 haiku*)
   lt_cv_deplibs_check_method=pass_all
   ;;
@@ -3289,7 +3274,7 @@ irix5* | irix6* | nonstopux*)
   ;;
 
 # This must be glibc/ELF.
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
@@ -4041,7 +4026,7 @@ m4_if([$1], [CXX], [
 	    ;;
 	esac
 	;;
-      linux* | k*bsd*-gnu | kopensolaris*-gnu)
+      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 	case $cc_basename in
 	  KCC*)
 	    # KAI C++ Compiler
@@ -4354,7 +4339,7 @@ m4_if([$1], [CXX], [
       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
       ;;
 
-    linux* | k*bsd*-gnu | kopensolaris*-gnu)
+    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
       case $cc_basename in
       # old Intel for x86_64 which still supported -KPIC.
       ecc*)
@@ -6242,9 +6227,6 @@ if test yes != "$_lt_caught_CXX_error"; then
         _LT_TAGVAR(ld_shlibs, $1)=yes
         ;;
 
-      gnu*)
-        ;;
-
       haiku*)
         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags \
$wl-soname $wl$soname -o $lib'  _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -6406,7 +6388,7 @@ if test yes != "$_lt_caught_CXX_error"; then
         _LT_TAGVAR(inherit_rpath, $1)=yes
         ;;
 
-      linux* | k*bsd*-gnu | kopensolaris*-gnu)
+      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
         case $cc_basename in
           KCC*)
 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
-- 
1.7.4.4



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic