libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UnixWare -lc fixes


From: Tim Rice
Subject: UnixWare -lc fixes
Date: Mon, 17 Oct 2005 21:53:29 -0700 (PDT)

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
address@hidden

Attachment: branch-1-5-sco-lc.patch
Description: branch-1-5-sco-lc.patch

Attachment: head-sco-lc.patch
Description: head-sco-lc.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]