summaryrefslogtreecommitdiffstats
path: root/c++/src/h5c++.in
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2024-03-16 03:42:21 (GMT)
committerGitHub <noreply@github.com>2024-03-16 03:42:21 (GMT)
commit844172a1e81fd614fa1efb32e2dcee469b740794 (patch)
tree9cfe0eb3c73bf034b2637c8782c066f8d7a7ff0f /c++/src/h5c++.in
parent4320d92be6f2d4c945ebe2ce8d63a683d6642a96 (diff)
parent6d85ea26abea85935af45081e8ef9d6e2a659171 (diff)
downloadhdf5-844172a1e81fd614fa1efb32e2dcee469b740794.zip
hdf5-844172a1e81fd614fa1efb32e2dcee469b740794.tar.gz
hdf5-844172a1e81fd614fa1efb32e2dcee469b740794.tar.bz2
Merge branch 'develop' into feature/new_datatypesfeature/new_datatypes
Diffstat (limited to 'c++/src/h5c++.in')
-rw-r--r--c++/src/h5c++.in42
1 files changed, 21 insertions, 21 deletions
diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in
index e666ba9..a5c584c 100644
--- a/c++/src/h5c++.in
+++ b/c++/src/h5c++.in
@@ -314,27 +314,27 @@ if test "x$do_link" = "xyes"; then
fi
link_args="$link_args -L${libdir}"
- case "$kind" in
- gcc|linux*)
- # MacOS X doesn't support the "-Wl,-rpath -Wl," style of linker flags.
- # It appears to want none of them specified.
- case "$host_os" in
- darwin*) flag="" ;;
- *) flag="-Wl,-rpath -Wl," ;;
- esac
- ;;
- hpux*) flag="-Wl,+b -Wl," ;;
- freebsd*|solaris*) flag="-R" ;;
- rs6000*|aix*) flag="-L" ;;
- sgi) flag="-rpath " ;;
- *) flag="" ;;
- esac
-
- if test -n "$flag"; then
- shared_link="${flag}${libdir}"
- fi
-
- if test "x$USE_SHARED_LIB" != "xyes"; then
+ if test "x$USE_SHARED_LIB" = "xyes"; then
+ case "$kind" in
+ gcc|linux*)
+ # MacOS X doesn't support the "-Wl,-rpath -Wl," style of linker flags.
+ # It appears to want none of them specified.
+ case "$host_os" in
+ darwin*) flag="" ;;
+ *) flag="-Wl,-rpath -Wl," ;;
+ esac
+ ;;
+ hpux*) flag="-Wl,+b -Wl," ;;
+ freebsd*|solaris*) flag="-R" ;;
+ rs6000*|aix*) flag="-L" ;;
+ sgi) flag="-rpath " ;;
+ *) flag="" ;;
+ esac
+
+ if test -n "$flag"; then
+ shared_link="${flag}${libdir}"
+ fi
+ else
# The "-lhdf5" & "-lhdf5_hl" flags are in here already...This is a static
# compile though, so change it to the static version (.a) of the library.
new_libraries=""