Hi Tim, Albert, Kean,

* Albert Chin wrote on Fri, Nov 04, 2005 at 06:07:48PM CET:
> 
> Well, Tim said we do it for other platforms so I say we accept the
> patch:
>           *-*-os2*)
>             # These systems don't actually have a C library (as such)
>             test "X$arg" = "X-lc" && continue
>             ;;

Yes, agreed.

* Tim Rice wrote on Fri, Nov 04, 2005 at 07:00:23PM CET:
> On Fri, 4 Nov 2005, Ralf Wildenhues wrote:
> 
> > Is gettext the only package that exposes this?  Could you be bothered
> > to write a bug report (or have already done so)?
> 
> I don't know if gettext is the only one or not.
> I just sent a patch to [EMAIL PROTECTED]

Thank you.  If you could post the outcome here, that would be nice.

Since we need to check for the -lc part further down (where we've worked
our way through all the deplibs), I've added the cases down there as
well.  While doing so, I noted that just copy-n-pasting is pretty much
nonsense: $arg has no meaning when we're not in the argument parsing
loop any more.  Guess I messed that up last time as well.  :-/

In any case, these are the patches I've added to CVS HEAD and
branch-1-5.  Please test that everything works as expected.

Thanks,
Ralf

2005-11-05  Kean Johnston  <[EMAIL PROTECTED]>,
            Ralf Wildenhues  <[EMAIL PROTECTED]>

        * libltdl/config/ltmain.m4sh (func_mode_link) [*-*-sco3.2v5*]:
        Don't pass through -lc, nor add it to deplibs.
        [*-*-sysv5*]: Ditto.
        [*-*-openbsd*, *-*-freebsd*, *-*-dragonfly*]: Remove bogus
        `$arg'.
2005-11-05  Kean Johnston  <[EMAIL PROTECTED]>,
            Ralf Wildenhues  <[EMAIL PROTECTED]>

        * libltdl/config/ltmain.m4sh (func_mode_link) [*-*-sco3.2v5*]:
        Don't pass through -lc, nor add it to deplibs.
        [*-*-sysv5*]: Ditto.
        [*-*-openbsd*, *-*-freebsd*, *-*-dragonfly*]: Remove bogus
        `$arg'.

Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.15
diff -u -r1.15 ltmain.m4sh
--- libltdl/config/ltmain.m4sh  29 Oct 2005 14:21:02 -0000      1.15
+++ libltdl/config/ltmain.m4sh  5 Nov 2005 11:17:56 -0000
@@ -2613,6 +2613,15 @@
            # Rhapsody C and math libraries are in the System framework
            deplibs="$deplibs System.ltframework"
            continue
+           ;;
+         *-*-sco3.2v5* | *-*-sco5v6*)
+           # Causes problems with __ctype
+           test "X$arg" = "X-lc" && continue
+           ;;
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+           # Compiler inserts libc in the correct place for threads to work
+           test "X$arg" = "X-lc" && continue
+           ;;
          esac
        elif test "X$arg" = "X-lc_r"; then
         case $host in
@@ -4502,8 +4511,13 @@
            ;;
          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
            # Do not include libc due to us having libc/libc_r.
-           test "X$arg" = "X-lc" && continue
            ;;
+         *-*-sco3.2v5* | *-*-sco5v6*)
+           # Causes problems with __ctype
+           ;;
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+           # Compiler inserts libc in the correct place for threads to work
+           ;;
          *)
            # Add libc to deplibs on all other systems if necessary.
            if test "$build_libtool_need_lc" = "yes"; then
2005-11-05  Kean Johnston  <[EMAIL PROTECTED]>,
            Ralf Wildenhues  <[EMAIL PROTECTED]>

        * ltmain.in (link mode) [*-*-sco3.2v5*]: Don't pass through -lc,
        nor add it to deplibs.
        [*-*-sysv5*]: Ditto.
        [*-*-openbsd*, *-*-freebsd*, *-*-dragonfly*]: Remove bogus
        `$arg'.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.92
diff -u -r1.334.2.92 ltmain.in
--- ltmain.in   29 Oct 2005 14:21:45 -0000      1.334.2.92
+++ ltmain.in   5 Nov 2005 11:18:13 -0000
@@ -1495,6 +1495,15 @@
            # Rhapsody C and math libraries are in the System framework
            deplibs="$deplibs -framework System"
            continue
+           ;;
+         *-*-sco3.2v5* | *-*-sco5v6*)
+           # Causes problems with __ctype
+           test "X$arg" = "X-lc" && continue
+           ;;
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+           # Compiler inserts libc in the correct place for threads to work
+           test "X$arg" = "X-lc" && continue
+           ;;
          esac
        elif test "X$arg" = "X-lc_r"; then
         case $host in
@@ -3375,7 +3384,12 @@
            ;;
          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
            # Do not include libc due to us having libc/libc_r.
-           test "X$arg" = "X-lc" && continue
+           ;;
+         *-*-sco3.2v5* | *-*-sco5v6*)
+           # Causes problems with __ctype
+           ;;
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+           # Compiler inserts libc in the correct place for threads to work
            ;;
          *)
            # Add libc to deplibs on all other systems if necessary.

Reply via email to