[Top][All Lists]

[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 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
...... $(OBJECTS)
        $(LIBTOOL) --mode=link \
          $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
          -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
          -rpath $(libdir) \

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

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]