diff options
author | James Laird <jlaird@hdfgroup.org> | 2005-09-13 22:30:33 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2005-09-13 22:30:33 (GMT) |
commit | 33beeb7f55193bc76a7544f9fe3634718f36352d (patch) | |
tree | 477997f046cf9bc98025a8ecdd63ea01963d1081 /c++ | |
parent | 676e9e6f13caaeff5fb0e3809dda6d0e427bf0de (diff) | |
download | hdf5-33beeb7f55193bc76a7544f9fe3634718f36352d.zip hdf5-33beeb7f55193bc76a7544f9fe3634718f36352d.tar.gz hdf5-33beeb7f55193bc76a7544f9fe3634718f36352d.tar.bz2 |
[svn-r11411] Purpose:
Bug fix
Description:
Building with --disable-static seems to have been broken on several platforms.
Fixed this.
Configure will now disable shared libraries automatically when using pgf90
or when building on Cygwin.
Solution:
To avoid errors when using shared libraries with pgf90 (which I had not
realized were compiler-specific), I had manually set convenience libraries
to use the -static linking flag. Apparently, this is not necessary, and
caused these libraries to be created as empty archives when --disable-static
was used.
Also, some libraries were including other libraries, which was not
necessary.
I also fixed code in configure.in to correctly detect whether shared
or static libraries are enabled, and moved code that disables shared libraries
to before libtool is created (rather than editing libtool after the fact).
Despite repeated warnings that only one shared library can be linked at a
time, I have yet to have shared libraries break the linking of tests on
any system. We'll see if the Daily Tests turn up anything.
Platforms tested:
mir (fortran, C++), sleipnir (C++), modi4 (fortran, C++, parallel),
sol (fortran, C++), cygwin
Diffstat (limited to 'c++')
-rw-r--r-- | c++/src/Makefile.am | 5 | ||||
-rw-r--r-- | c++/src/Makefile.in | 5 | ||||
-rw-r--r-- | c++/test/Makefile.am | 3 | ||||
-rw-r--r-- | c++/test/Makefile.in | 3 |
4 files changed, 0 insertions, 16 deletions
diff --git a/c++/src/Makefile.am b/c++/src/Makefile.am index 1cd499c..b828d2f 100644 --- a/c++/src/Makefile.am +++ b/c++/src/Makefile.am @@ -22,11 +22,6 @@ include $(top_srcdir)/config/commence.am # Include src directory INCLUDES=-I$(top_srcdir)/src -# Build the library statically because some compliers can only link one -# dynamic library, and that's the main hdf5 library (which is much larger -# than this one). -AM_LDFLAGS=-static - # This is our main target lib_LTLIBRARIES=libhdf5_cpp.la diff --git a/c++/src/Makefile.in b/c++/src/Makefile.in index f475b6a..75e2228 100644 --- a/c++/src/Makefile.in +++ b/c++/src/Makefile.in @@ -322,11 +322,6 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog # Include src directory INCLUDES = -I$(top_srcdir)/src -# Build the library statically because some compliers can only link one -# dynamic library, and that's the main hdf5 library (which is much larger -# than this one). -AM_LDFLAGS = -static - # This is our main target lib_LTLIBRARIES = libhdf5_cpp.la bin_SCRIPTS = h5c++ diff --git a/c++/test/Makefile.am b/c++/test/Makefile.am index 8d2627a..2f5edf5 100644 --- a/c++/test/Makefile.am +++ b/c++/test/Makefile.am @@ -22,9 +22,6 @@ include $(top_srcdir)/config/commence.am # Include src, test, and c++/src directories INCLUDES=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/c++/src -# C++ libraries and tests are built statically -AM_LDFLAGS=-static - # These are our main targets. They should be listed in the order to be # executed, generally most specific tests to least specific tests. TEST_PROG=dsets testhdf5 diff --git a/c++/test/Makefile.in b/c++/test/Makefile.in index b1098e5..bf82934 100644 --- a/c++/test/Makefile.in +++ b/c++/test/Makefile.in @@ -311,9 +311,6 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog # Include src, test, and c++/src directories INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/c++/src -# C++ libraries and tests are built statically -AM_LDFLAGS = -static - # These are our main targets. They should be listed in the order to be # executed, generally most specific tests to least specific tests. TEST_PROG = dsets testhdf5 |