summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorM. Scot Breitenfeld <brtnfld@hdfgroup.org>2017-07-27 16:32:21 (GMT)
committerM. Scot Breitenfeld <brtnfld@hdfgroup.org>2017-07-27 16:32:21 (GMT)
commitbe5257f8766e5be1ceacee3260b4b52b499983f6 (patch)
tree67840b15627280d10ad7ae37ad7d79247c069693 /fortran
parent972beffb59f0f2ec15cd3829b5ae1cbfd8d0793f (diff)
downloadhdf5-be5257f8766e5be1ceacee3260b4b52b499983f6.zip
hdf5-be5257f8766e5be1ceacee3260b4b52b499983f6.tar.gz
hdf5-be5257f8766e5be1ceacee3260b4b52b499983f6.tar.bz2
libtool does not pass the correct argument linking (-WL,-WL,,) for the
NAG Fortran compiler on Linux (other OSs have not been tested). Therefore, detect if we are using the NAG Fortran compiler, and replace the wl="-Wl," for Fortran to wl="-Wl,-WL,," in the libtool file. (HDFFV-10037)
Diffstat (limited to 'fortran')
-rw-r--r--fortran/src/h5fc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in
index 47642c9..29ef83f 100644
--- a/fortran/src/h5fc.in
+++ b/fortran/src/h5fc.in
@@ -307,7 +307,7 @@ if test "x$do_link" = "xyes"; then
link_args="$link_args -L${libdir}"
case "$host_os" in
- linux*) flag="-Wl,-rpath -Wl," ;;
+ linux*) flag="@fortran_linux_linker_option@-rpath -Wl," ;;
hpux*) flag="-Wl,+b -Wl," ;;
freebsd*|solaris*) flag="-R" ;;
rs6000*|aix*) flag="-L" ;;