[svn-r23482] I changed the plugin library to be built as shared library only when configure enables shared. libtool will install the shared plugin library. I put a remove command in test/Makefile.am to delete the unnecessary plugin library.

Tested on jam, koala, and emu.
This commit is contained in:
Raymond Lu
2013-03-28 15:14:11 -05:00
parent 9138b343aa
commit 3374ffecf8
3 changed files with 2063 additions and 1995 deletions

View File

@@ -78,12 +78,16 @@ endif
if HAVE_SHARED_CONDITIONAL
# The libh5test library provides common support code for the tests.
noinst_LTLIBRARIES=libh5test.la libdynlib1.la
noinst_LTLIBRARIES=libh5test.la
# The libdynlib1 library for testing plugin module plugin.c.
# Build it as shared library if configure is enabled for shared library.
lib_LTLIBRARIES=libdynlib1.la
libdynlib1_la_SOURCES=dynlib1.c
libdynlib1_la_LDFLAGS=-rpath /tmp
install-data-local:
$(RM) $(DESTDIR)$(libdir)/*dynlib1*
else
# The libh5test library provides common support code for the tests.
noinst_LTLIBRARIES=libh5test.la