Hi there.

i have a problem with LTLIBRARY modules and the executables wrapper.

consider the following setup.

project/lib/Makefile.am
lib_LTLIBRARIES = library.la

project/plugins/Makefile.am
programdir = $(pkglibdir)
program_LTLIBRARIES = plugin.la
plugin_la_LDFLAGS = -module

project/main/Makefile.am
bin_PROGRAMS = program
program_LDADD = ../lib/library.la
program_LDFLAGS = -rpath ${pkglibdir} # maybe -Wl,--enable-new-dtags

this program calls dlopen("plugin.so").

the wrapper creates main/.libs/lt-program with -rpath set to lib/.libs,
but i see no way to get apps/.libs into this rpath. without it, program
does not run before installation (or manual interaction...).
(and worse, it will falsely dlopen the wrong plugin from ${pkglibdir} if
it exists.)

FWIW, program_LDADD+= ../plugins/plugin.la has no effect at all. maybe
it should (if there is no other way to do this)?

thanks
felix

PS: please CC me, not subscribed...

Reply via email to