summaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/Makefile.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 08a8899..712ab0a 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -50,11 +50,16 @@ PRIVATE_HDR=H5private.h H5Aprivate.h H5Apkg.h H5ACprivate.h H5Bprivate.h \
H5Zprivate.h H5config.h
## Number format detection
+## The LD_LIBRARY_PATH setting is a klutch.
+## Things should have been all set during H5detect making.
H5Tinit.c: H5detect
+ LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \
+ sed -e 's/-L/:/g' -e 's/ //g'`" \
$(LT_RUN) ./H5detect >H5Tinit.c
## no $(LIB) in the action below since that's being made now.
-H5detect: H5detect.o
- $(LT_LINK_EXE) $(CFLAGS) -o $@ H5detect.o $(LDFLAGS) $(LIBS)
+H5detect: H5detect.lo
+ @$(LT_LINK_EXE) $(CFLAGS) -o $@ H5detect.lo $(LDFLAGS) $(LIBS)
+
@CONCLUDE@