summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-04-18 15:38:14 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-04-18 19:13:22 (GMT)
commitd5da45e168a4e5efeab22c800e5d8d9ff76ea853 (patch)
tree0d9a030d2d56731193709865011fd854ad3279a8
parented9ffe724978a76043cc47d80623c7bdb4f34f60 (diff)
downloadhdf5-d5da45e168a4e5efeab22c800e5d8d9ff76ea853.zip
hdf5-d5da45e168a4e5efeab22c800e5d8d9ff76ea853.tar.gz
hdf5-d5da45e168a4e5efeab22c800e5d8d9ff76ea853.tar.bz2
Add plugin options for libs
-rw-r--r--java/src/jni/Makefile.am2
-rw-r--r--test/Makefile.am4
-rw-r--r--tools/test/h5dump/Makefile.am4
-rw-r--r--tools/test/h5repack/Makefile.am2
4 files changed, 9 insertions, 3 deletions
diff --git a/java/src/jni/Makefile.am b/java/src/jni/Makefile.am
index 84b8f9c..baecc46 100644
--- a/java/src/jni/Makefile.am
+++ b/java/src/jni/Makefile.am
@@ -29,7 +29,7 @@ AM_CPPFLAGS+=-I$(top_srcdir)/src -I$(top_srcdir)/java/src/jni $(JNIFLAGS)
lib_LTLIBRARIES=libhdf5_java.la
# Add libtool numbers to the HDF5 Java (JNI) library (from config/lt_vers.am)
-libhdf5_java_la_LDFLAGS= -version-info $(LT_JAVA_VERS_INTERFACE):$(LT_JAVA_VERS_REVISION):$(LT_JAVA_VERS_AGE) $(AM_LDFLAGS)
+libhdf5_java_la_LDFLAGS = -module -shared -export-dynamic -version-info $(LT_JAVA_VERS_INTERFACE):$(LT_JAVA_VERS_REVISION):$(LT_JAVA_VERS_AGE) $(AM_LDFLAGS)
# Source files for the library
libhdf5_java_la_SOURCES=exceptionImp.c h5Constants.c nativeData.c h5util.c h5Imp.c \
diff --git a/test/Makefile.am b/test/Makefile.am
index 0d85117..8bbe972 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -109,6 +109,10 @@ if HAVE_SHARED_CONDITIONAL
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.
diff --git a/tools/test/h5dump/Makefile.am b/tools/test/h5dump/Makefile.am
index 9a63730..4511703 100644
--- a/tools/test/h5dump/Makefile.am
+++ b/tools/test/h5dump/Makefile.am
@@ -39,9 +39,9 @@ LDADD=$(LIBH5TOOLS) $(LIBHDF5)
if HAVE_SHARED_CONDITIONAL
# Build it as shared library if configure is enabled for shared library.
- lib_LTLIBRARIES=libdynlibdump.la
+ noinst_LTLIBRARIES=libdynlibdump.la
libdynlibdump_la_SOURCES=dynlib_dump.c
-
+ libdynlibdump_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
install-exec-hook:
$(RM) $(DESTDIR)$(libdir)/*dynlib*
endif
diff --git a/tools/test/h5repack/Makefile.am b/tools/test/h5repack/Makefile.am
index aa964ca..32213cd 100644
--- a/tools/test/h5repack/Makefile.am
+++ b/tools/test/h5repack/Makefile.am
@@ -48,6 +48,8 @@ if HAVE_SHARED_CONDITIONAL
noinst_LTLIBRARIES=libdynlibadd.la libdynlibvers.la
libdynlibadd_la_SOURCES=dynlib_rpk.c
libdynlibvers_la_SOURCES=dynlib_vrpk.c
+ libdynlibadd_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+ libdynlibvers_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
endif
# Temporary files. *.h5 are generated by h5repack. They should