On Mon, Mar 20, 2000 at 02:41:03AM +0100, Erik Eriksson wrote:
: Hi,
:
: I have problems getting libtool to create shared libraries under BeOS.
: When examining the libtool-script and comparing with another platform,
: it seems that if I change the definition below:
:
: # Flag that allows shared libraries with undefined symbols to be built.
: allow_undefined_flag="unsupported"
:
: to:
:
: allow_undefined_flag=""
:
: , I get my libraries, and everything seems to work perfectly fine.
Instead of hardcoding this into libtool, add "-no-undefined" to LDFLAGS in
your Makefile.am files, like this:
libreg_la_LDFLAGS = \
-no-undefined \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-release $(LT_RELEASE)
I notice I've hardcoded "deplibs_check_method=pass_all" myself in ltmain.sh
in some project, because libtool kept dropping the libs my library depend
on... I should really investigate this more thorough, but now that things
work it's more satisfying to work on the library itself than on the build
process...
Lars J