summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-06-04 16:51:32 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-06-04 16:51:32 (GMT)
commit1e26a97d518179dcebac7dcaccc61c1a398f7bb1 (patch)
treef7a36fba8e4058b27b415b62508078caaa0884cd
parenta43876da02a3fc64dae7ae4b8ccc64f15f49e60d (diff)
downloadhdf5-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:
-rwxr-xr-xtools/misc/h5cc.in9
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" ;;