[Top][All Lists]

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

libtool on Darwin

From: F J Franklin
Subject: libtool on Darwin
Date: Mon, 14 Oct 2002 09:17:38 +0100 (BST)

Further to my last posting...

Having spent the weekend pre-binding libraries with the aid of libtool,
only to discover that the X11 libs aren't prebound (hear me growl)... :-)

patch attached, though I'm not recommending it for inclusion into CVS -
it's more by way of an FYI: here's the libtool that I'm now using at home.

it's much simpler than my previous patches because this time I'm not
including my own lt-dyld dl wrapper. instead I'm using the excellent
dlcompat (which still needs one or two kinks ironed out, but that's well
in hand).

also, rather than make support for @executable_path install_name explicit
I've added support for defining -bundle_loader and -install_name in
configure; see the macros in dyld.m4, which need to be used prior to
AC_PROG_LIBTOOL. (I haven't tested the -bundle_loader bit yet.)

if prebinding, seg1addr can be specified like:

libMyLib_la_LDFLAGS = -no-undefined -Xlinker -seg1addr -Xlinker 1234abcd

finally, libstdc++ and libgcc are provided only as static libs on Darwin,
and the -no-undefined flag causes libtool to regard this as a problem. I
added a hack to treat these two libs as special cases.


Francis James Franklin

  `Medium atomic weights are available: Gold, Lead, Copper, Jet, Diamond,
Radium, Sapphire, Silver and Steel.
  `Sapphire and Steel have been assigned...'

Attachment: libtool_e.patch
Description: libtool_e.patch

reply via email to

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