After looking over some stuff in
http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00839.html that related
to libtool and some off list emails with Kean Johnston (the author of
the gcc patch) and Ralf Wildenhues, I realize my UnixWare patch
was incomplete. On UnixWare and OpenServer 5&6 we never want -lc on the
command line. cc / CC takes care of that for us (and always gets it right).
Setting build_libtool_need_lc=no takes care of most of it but that
doesn't account for Makefiles adding -lc. Like this snip from
gettext-0.14.5/gettext-runtime/intl/Makefile.in
......
libintl.la libgnuintl.la: $(OBJECTS)
$(LIBTOOL) --mode=link \
$(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
$(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) -lc \
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
-rpath $(libdir) \
-no-undefined
......
I had been patching Makefiles (post configure) in packages to strip out -lc.
Now I realize libtool can do that for me.
I've attached patches to branch-1-5 and HEAD.
--
Tim Rice Multitalents (707) 887-1469
[EMAIL PROTECTED]
--- ltmain.in.old 2005-10-17 13:56:43.000000000 -0700
+++ ltmain.in 2005-10-17 21:29:17.160096225 -0700
@@ -1494,6 +1494,15 @@
# Rhapsody C and math libraries are in the System framework
deplibs="$deplibs -framework System"
continue
+ ;;
+ *-*-sco3.2v5*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # cc / CC insert libc in correct order for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
esac
elif test "X$arg" = "X-lc_r"; then
case $host in
--- libltdl/config/ltmain.m4sh.old 2005-10-15 16:26:35.000000000 -0700
+++ libltdl/config/ltmain.m4sh 2005-10-17 21:26:09.785056333 -0700
@@ -2612,6 +2612,15 @@
# Rhapsody C and math libraries are in the System framework
deplibs="$deplibs System.ltframework"
continue
+ ;;
+ *-*-sco3.2v5*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # cc / CC insert libc in correct order for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
esac
elif test "X$arg" = "X-lc_r"; then
case $host in