mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[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:
This commit is contained in:
parent
a43876da02
commit
1e26a97d51
@ -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" ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user