diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-06-04 16:51:32 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-06-04 16:51:32 (GMT) |
commit | 1e26a97d518179dcebac7dcaccc61c1a398f7bb1 (patch) | |
tree | f7a36fba8e4058b27b415b62508078caaa0884cd /tools | |
parent | a43876da02a3fc64dae7ae4b8ccc64f15f49e60d (diff) | |
download | hdf5-1e26a97d518179dcebac7dcaccc61c1a398f7bb1.zip hdf5-1e26a97d518179dcebac7dcaccc61c1a398f7bb1.tar.gz hdf5-1e26a97d518179dcebac7dcaccc61c1a398f7bb1.tar.bz2 |
[svn-r6959]
Purpose:
Bug Fix
Description:
The flags for the linker on MacOS X were invalid.
Solution:
If this is a darwin platform (MacOS X), then don't specify the
runtime linker flags.
Platforms tested:
MacOSX (since it only affects it...)
Misc. update:
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" ;; |