libtool "module" behavior and darwin

2002-11-24 Thread Benjamin Reed
One of the problems we're running into getting KDE working on Darwin is libtool's concept of a "module", and how it's mapped onto Darwin's linker behavior. On Darwin, unlike most other unixen (as far as I'm aware), loadable modules and dynamic shared libraries are 2 distinctly different entiti

Re: libtool "module" behavior and darwin

2002-11-24 Thread Guido Draheim
Benjamin Reed wrote: [...] ---(snip!)--- kbackgammon_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -module -avoid-version kbackgammon_LDADD = kbackgammon.la $(LIB_KDEGAMES) $(LIB_KSYCOCA) kbackgammon_SOURCES = dummy.cpp ---(snip!)--- ...this is a no-no, kbackgammon is trying to link against a bund

Re: libtool "module" behavior and darwin

2002-11-24 Thread Benjamin Reed
On Sunday, November 24, 2002, at 04:54 PM, Guido Draheim wrote: The only hint that I can give has the form of a question: Did you try kbackgammon_LDADD = -static kbackgammon.la $(LIB_KDEGAMES) $(LIB_KSYCOCA) kbackgammon_SOURCES = dummy.cpp $ ./libtool --help --mode=link | grep static -all-s

Re: libtool "module" behavior and darwin

2002-11-24 Thread Guido Draheim
Guido Draheim wrote: Benjamin Reed wrote: [...] ---(snip!)--- kbackgammon_la_LDFLAGS = $(all_libraries) $(KDE_RPATH) -module -avoid-version kbackgammon_LDADD = kbackgammon.la $(LIB_KDEGAMES) $(LIB_KSYCOCA) kbackgammon_SOURCES = dummy.cpp ---(snip!)--- ...this is a no-no, kbackgammon is trying

Re: libtool "module" behavior and darwin

2002-11-24 Thread Benjamin Reed
On Sunday, November 24, 2002, at 05:13 PM, Guido Draheim wrote: I mean, that should also be seen on other platforms than darwin, right? Or am I mistaken here? (I wouldn't count myself to know large parts of libtool indepth, well, then again, who still does ;-) ...) Well, on pretty much every ot

Re: libtool "module" behavior and darwin

2002-11-24 Thread Guido Draheim
Benjamin Reed wrote: On Sunday, November 24, 2002, at 05:13 PM, Guido Draheim wrote: I mean, that should also be seen on other platforms than darwin, right? Or am I mistaken here? (I wouldn't count myself to know large parts of libtool indepth, well, then again, who still does ;-) ...) Well,

Re: libtool "module" behavior and darwin

2002-11-24 Thread Guido Draheim
Benjamin Reed wrote: On Sunday, November 24, 2002, at 04:54 PM, Guido Draheim wrote: The only hint that I can give has the form of a question: Did you try kbackgammon_LDADD = -static kbackgammon.la $(LIB_KDEGAMES) $(LIB_KSYCOCA) kbackgammon_SOURCES = dummy.cpp $ ./libtool --help --mode=lin

Re: [Fink-devel] Re: libtool "module" behavior and darwin

2002-11-24 Thread Benjamin Reed
On Sunday, November 24, 2002, at 05:17 PM, Guido Draheim wrote: That's actually the difference between "-all-static" and "-static" IIRC. The "-static" should only link its .la's as static, and non-la's dynamic. But perhaps I am mistaken too, that's why I did ask if you did try somewhen. Well,

Re: [Fink-devel] Re: libtool "module" behavior and darwin

2002-11-24 Thread Guido Draheim
Benjamin Reed wrote: On Sunday, November 24, 2002, at 05:17 PM, Guido Draheim wrote: That's actually the difference between "-all-static" and "-static" IIRC. The "-static" should only link its .la's as static, and non-la's dynamic. But perhaps I am mistaken too, that's why I did ask if you did

Re: [Fink-devel] Re: libtool "module" behavior and darwin

2002-11-24 Thread Benjamin Reed
On Sunday, November 24, 2002, at 05:44 PM, Guido Draheim wrote: You mean they are listed as ".la" on the link-line? To stick with the example, there is a LIB_KDEGAMES = libkdegames.la in your makefiles? aargh, kde maniacs at work No, it would be, libfoo_la_LIBADD = $(top_builddir)/kdec

Re: [Fink-devel] Re: libtool "module" behavior and darwin

2002-11-24 Thread Guido Draheim
Benjamin Reed wrote: On Sunday, November 24, 2002, at 05:44 PM, Guido Draheim wrote: You mean they are listed as ".la" on the link-line? To stick with the example, there is a LIB_KDEGAMES = libkdegames.la in your makefiles? aargh, kde maniacs at work No, it would be, libfoo_la_LIBADD

Re: libtool "module" behavior and darwin

2002-11-24 Thread Thien-Thi Nguyen
is this discussion informed by libtool preopen facilities? thi ___ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool