[linux-audio-dev] libtool test modules

From: Stefano D'Angelo <zanga.mail@email-addr-hidden>
Date: Mon Mar 19 2007 - 17:53:40 EET

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
Received on Mon Mar 19 20:15:04 2007

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