[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:
Bill Wendling 2003-06-04 11:51:32 -05:00
parent a43876da02
commit 1e26a97d51

View File

@ -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" ;;