summaryrefslogtreecommitdiffstats
path: root/config/commence.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2000-02-18 12:53:32 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2000-02-18 12:53:32 (GMT)
commit9ca6cfa0aa4720191647474a9ea5f828b10d165a (patch)
tree30e25904de5e590b7ae79423790bdb6a3f03f38f /config/commence.in
parent1fdf079abcd120421fe6453666bfc190bf07dd50 (diff)
downloadhdf5-9ca6cfa0aa4720191647474a9ea5f828b10d165a.zip
hdf5-9ca6cfa0aa4720191647474a9ea5f828b10d165a.tar.gz
hdf5-9ca6cfa0aa4720191647474a9ea5f828b10d165a.tar.bz2
[svn-r1975] Purpose:
Configuration improvement Problem: Arabica has a zlib library that is a dynamic lib in /usr/ncsa/lib. Binary generated would fail to run with a missig libz.so complain if /usr/ncsa/lib is not in $LD_LIBRARY_PATH. This exposed the problem that if the binary is linked with -L$mylibpath -lxyz where libxyz is a dynamic type, the binary can't run if $mylibpath is not in $LD_LIBRARY_PATH (or equivalent) or as part of the system default library paths (e.g., /usr/lib, /usr/local/lib). This problem also caused failures during configure (when trying to see what format to print long long) and during H5detect. The base cause is because libtool does not "transfer" the knowledge of -L$mylibpath to the wrapper file its mode=link generates. Solution: bin/ltmain.sh: Changed it so that it transfers the libpaths from -Llibpaths to the wrapper generated. I used the already defined variable finalize_shlibpath. Not sure it is correct to use it this way. Need to check on this. configure.in: Put in a patch to transfer information from LDFLAGS to LD_LIBRARY_PATH right before the AC_TRY_RUN. The above fix for ltmain.sh does not work here because libtool is generated later than this point. There should be a cleaner way to do this. Removed the hardcode of NCSA_LT_LINK_EXE because it is no longer needed. commence.in: Removed the hardcode of NCSA_LT_LINK_EXE because it is no longer needed. Makefile.in: Another patch of LDFLAGS to LD_LIBRARY_PATH because I could not make it to generate H5detect in the wrapper form of libtool. Need to make it to use the libtool correctly. Later. Platform tested: arabica (solaris 2.7) baldric (solaris 2.6)
Diffstat (limited to 'config/commence.in')
-rw-r--r--config/commence.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/commence.in b/config/commence.in
index 0ba7388..23b2284 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -26,7 +26,6 @@ CP=cp
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
-NCSA_LT_LINK_EXE=@NCSA_LT_LINK_EXE@
RUNSERIAL=@RUNSERIAL@
RUNPARALLEL=@RUNPARALLEL@
RUNTEST=$(RUNSERIAL)
@@ -45,7 +44,7 @@ PUB_LIB=$(LIB)
LT=$(top_builddir)/libtool
LT_COMPILE=$(LT) --mode=compile $(CC)
LT_LINK_LIB=$(LT) --mode=link $(CC) -rpath $(libdir)
-LT_LINK_EXE=$(LT) --mode=link $(CC) -rpath $(bindir) $(NCSA_LT_LINK_EXE)
+LT_LINK_EXE=$(LT) --mode=link $(CC) -rpath $(bindir)
LT_RUN=$(LT) --mode=execute
LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA)