From 1e26a97d518179dcebac7dcaccc61c1a398f7bb1 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 4 Jun 2003 11:51:32 -0500 Subject: [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: --- tools/misc/h5cc.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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" ;; -- cgit v0.12