diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/misc/h5cc.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in index 25f2dc1..77d6bf9 100755 --- a/tools/misc/h5cc.in +++ b/tools/misc/h5cc.in @@ -236,7 +236,14 @@ if test "x$do_link" = "xyes"; then link_args="$link_args -L${libdir}" case "$kind" in - gcc|linux*) flag="-Wl,-rpath -Wl," ;; + 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" ;; |