On Wed, 21 Apr 2010, Peter O'Gorman wrote:

On 04/21/2010 04:00 PM, Vincent Torri wrote:

Hey,

A guy mentioned that problem: on mac os x, a "standard" shared lib has
suffix name .dylib:

lib_LTLIBRARIES = libfoo.la  --> libfoo.dylib

but with a "module":

pkg_LTLIBRARIES = bar.la
bar_la_LDFLAGS = -module -avoid-version

then the name is bar.so and not bar.dylib

Is it a known behavior ? If so, is it a bug ?

Yes, it is known, no, it is not a bug.

         linux windows   mac
lib        so    dll     dylib
module     so    dll     so

mac is the only system where the module has a different name than a lib. Why ? That complicates things for nothing (we use shrext_cmds variable in autoconf as suffix of files that are dlopened).

Vincent Torri


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to