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

From: Stefano D'Angelo <zanga.mail@email-addr-hidden>
Date: Mon Mar 19 2007 - 18:39:11 EET

2007/3/19, Stefano D'Angelo <zanga.mail@email-addr-hidden>:
> 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. :-)
Received on Mon Mar 19 20:15:05 2007

This archive was generated by hypermail 2.1.8 : Mon Mar 19 2007 - 20:15:05 EET