automake
[Top][All Lists]
Advanced

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

question about libtool wrapper and plugins


From: Felix Salfelder
Subject: question about libtool wrapper and plugins
Date: Thu, 16 Jan 2014 13:02:19 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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

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