bug-libtool
[Top][All Lists]
Advanced

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

Re: Possible problem with LT 2.2


From: Jeff Squyres
Subject: Re: Possible problem with LT 2.2
Date: Mon, 17 Mar 2008 11:17:16 -0400

On Mar 15, 2008, at 10:02 AM, Ralf Wildenhues wrote:

mca_btl_sctp_la_LDFLAGS = -module -avoid-version $(btl_sctp_LDFLAGS)
mca_btl_sctp_la_LIBADD = $(btl_sctp_LIBS)

libmca_btl_sctp_la_LDFLAGS = -module -avoid-version $ (btl_sctp_LDFLAGS)
libmca_btl_sctp_la_LIBADD = $(btl_sctp_LIBS)

but you could use
 libmca_btl_sctp_la_LDFLAGS = $(mca_btl_sctp_la_LDFLAGS)

True.  I think that was mainly cut-n-paste issues.

- I'm assuming that what we're doing (compiling as DSO/convenience
library) is probably not very common

Well, it could probably be a lot more simplified if you always used the
lib-prefixed name, for both DSO and convenience library.


Ah, you mean something like this:

-----
if OMPI_BUILD_btl_sctp_DSO
mcacomponentdir = $(pkglibdir)
mcacomponent_LTLIBRARIES = mca_btl_sctp.la
else
noinst_LTLIBRARIES = mca_btl_sctp.la
endif

mca_btl_sctp_la_SOURCES = $(sources)
mca_btl_sctp_la_LDFLAGS = -module -avoid-version $(btl_sctp_LDFLAGS)
mca_btl_sctp_la_LIBADD = $(btl_sctp_LIBS)
-----

(or using "libmca_btl_sctp.la" as the name)

I just tried this now with LT 2.2, AM 1.10, AC 2.61 and it seemed to work fine on Linux, but I *swear* we tried this before and something barked that it couldn't use a convenience library that did not begin with "lib". The last time we tried this was a long time ago, though -- I'm not sure if we simply did not consider renaming our DSOs to begin with "lib" or if there were other issues with prior versions of LT/AM/AC that prevented us from combining the Makefile.am clauses. [shrug]

FWIW, are you aware of any platforms with LT 2.2, AM 1.10, and AC 2.61 that would create problems of having convenience libraries that do not begin with "lib"? (just to explore the "allow the DSOs to keep the non-lib-prefixed names" option)

Thanks.

--
Jeff Squyres
Cisco Systems





reply via email to

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