summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-04-18 19:22:47 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-04-18 19:22:47 (GMT)
commit0558a12ef8515d11e629ccb815f6bc8632a98285 (patch)
tree49e48e172f807ac574e2edc7a855e03ea27f0c4b /test
parentbb101f47746a522d9db2161cf02cb2d8f4108d25 (diff)
downloadhdf5-0558a12ef8515d11e629ccb815f6bc8632a98285.zip
hdf5-0558a12ef8515d11e629ccb815f6bc8632a98285.tar.gz
hdf5-0558a12ef8515d11e629ccb815f6bc8632a98285.tar.bz2
HDFFV-10170 undo patch and fix dyn lib build
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 1f397f3..fb611b3 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -75,21 +75,24 @@ if BUILD_ALL_CONDITIONAL
noinst_PROGRAMS=$(BUILD_ALL_PROGS)
endif
-if HAVE_SHARED_CONDITIONAL
- # The libh5test library provides common support code for the tests.
- noinst_LTLIBRARIES=libh5test.la
+# The libh5test library provides common support code for the tests.
+noinst_LTLIBRARIES=libh5test.la
+if HAVE_SHARED_CONDITIONAL
# The libdynlib1, libdynlib2, libdynlib3, and libdynlib4 library for testing plugin module plugin.c.
# Build it as shared library if configure is enabled for shared library.
- noinst_LTLIBRARIES=libdynlib1.la libdynlib2.la libdynlib3.la libdynlib4.la
+ lib_LTLIBRARIES=libdynlib1.la libdynlib2.la libdynlib3.la libdynlib4.la
libdynlib1_la_SOURCES=dynlib1.c
libdynlib2_la_SOURCES=dynlib2.c
libdynlib3_la_SOURCES=dynlib3.c
libdynlib4_la_SOURCES=dynlib4.c
+ libdynlib1_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+ libdynlib2_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+ libdynlib3_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+ libdynlib4_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
-else
- # The libh5test library provides common support code for the tests.
- noinst_LTLIBRARIES=libh5test.la
+install-exec-hook:
+ $(RM) $(DESTDIR)$(libdir)/*dynlib*
endif
libh5test_la_SOURCES=h5test.c testframe.c cache_common.c