Wed 30 May 2001 05:53:56 AM UTC, original submission:
I am learning to use libtool and its cohorts from the
GNU autoconf book by Vaughan et al, and am
trying to follow the simple examples in chapter 9
for Using Convenience LIbraries. I run into this odd
behavior under Darwin:
When I try to build a library with a dependency on
my convenience library, using the command
(which I copied from the book):
glibtool cc -rpath `pwd`/_inst -o libhello.la hello.lo
libtrim.la
I notice the output:
cc -dynamiclib -undefined suppress -o .libs/
libhello.0.0.0.dylib hello.lo -all_load ./.libs/
libtrim.al ./.libs/libtrim.al -lc -install_name /Users/
kfitz/Gumballs/hello-1.0/intro-hello/_inst/
libhello.0.dylib -compatibility_version 1 -
current_version 1.0
which, not surprisingly, fails to link, because
libtrim.al appears twice on the link line.
Why is libtool causing libtrim.la to appear twice on
the link line? That cannot be correct.
I am using libtool1.4, built from source, and I am
copying the commands verbatim from the book,
except that I change "libtool" to "glibtool" to avoid
name conflicts with Apple's libtool.
Any insight will be apreciated.
-kel
|