[linux-audio-dev] Re: libtool test modules

Stefano D'Angelo zanga.mail at gmail.com
Mon Mar 19 16:39:11 UTC 2007


2007/3/19, Stefano D'Angelo <zanga.mail at gmail.com>:
> Hi all,
> I have a little problem that maybe some of you already faced.
> I'm developing a test suite for my library and I wrote some libtool
> test modules which I wish to build with automake.
> The problem is that using check_LTLIBRARIES or noinst_LTLIBRARIES
> dynamic modules are not built, but only static libraries instead
> (while with any other prefix it works).
> How can I overcome this?
>
> Here the Makefile.am:
>
> MODFLAGS = "-module"
> INCLUDES = -I$(top_srcdir)/include @INCLTDL@
> AM_CPPFLAGS = -DTESTSDIR=\"`pwd`\"
>
> TESTS = lists dynarrays dl
>
> check_PROGRAMS = $(TESTS)
> lists_LDADD = ../lib/libnasprocore.la
> dynarrays_LDADD = ../lib/libnasprocore.la
> dl_LDADD = ../lib/libnasprocore.la @LIBLTDL@
>
> noinst_LTLIBRARIES = famod1.la goodmod.la
> famod1_la_SOURCES = famod1.c
> famod1_la_LDFLAGS = $(MODFLAGS)
> goodmod_la_SOURCES = goodmod.c
> goodmod_la_LDFLAGS = $(MODFLAGS)
>
> Thanks in advance,
>
> Stefano
>

Solved.. I missed the -rpath option in module's LDFLAGS. :-)



More information about the Linux-audio-dev mailing list