mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r6858] Purpose:
Bug Fix Description: Some compilers aren't happy if you specify the same library multiple times when linking. This caused HDF5 Lite to crash during tests on Kelgia Solution: Modified the script so that the shared libraries are specified only once for the commandline. Platforms tested: Kelgia (small fix). Misc. update:
This commit is contained in:
parent
27c6327973
commit
8bac19a89f
@ -40,6 +40,7 @@ prog_name="`basename $0`"
|
||||
|
||||
allargs=""
|
||||
compile_args=""
|
||||
libraries=""
|
||||
link_args=""
|
||||
link_objs=""
|
||||
clibpath=""
|
||||
@ -154,7 +155,7 @@ for arg in $@ ; do
|
||||
do_link="no"
|
||||
;;
|
||||
-l*)
|
||||
link_args="$link_args $arg"
|
||||
libraries="$libraries $arg"
|
||||
allargs="$allargs $arg"
|
||||
;;
|
||||
-prefix=*)
|
||||
@ -243,7 +244,18 @@ if test "x$do_link" = "xyes"; then
|
||||
shared_link="${flag}${libdir}"
|
||||
fi
|
||||
|
||||
link_args="$link_args -L${libdir} -lhdf5"
|
||||
libraries="-lhdf5 $libraries"
|
||||
link_args="$link_args -L${libdir}"
|
||||
|
||||
for l in $libraries; do
|
||||
case "$link_args" in
|
||||
*$l*)
|
||||
;;
|
||||
*)
|
||||
link_args="$link_args $l"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
else
|
||||
link_args="$link_args ${libdir}/libhdf5.a"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user