f56e54
libtool sucks.
f56e54
--- ltmain.sh.jj	2007-12-07 14:53:21.000000000 +0100
f56e54
+++ ltmain.sh	2008-09-05 21:51:48.000000000 +0200
f56e54
@@ -5394,6 +5394,7 @@ EOF
f56e54
 	  rpath="$finalize_rpath"
f56e54
 	  test "$mode" != relink && rpath="$compile_rpath$rpath"
f56e54
 	  for libdir in $rpath; do
f56e54
+	    case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
f56e54
 	    if test -n "$hardcode_libdir_flag_spec"; then
f56e54
 	      if test -n "$hardcode_libdir_separator"; then
f56e54
 		if test -z "$hardcode_libdirs"; then
f56e54
@@ -6071,6 +6072,7 @@ EOF
f56e54
       rpath=
f56e54
       hardcode_libdirs=
f56e54
       for libdir in $compile_rpath $finalize_rpath; do
f56e54
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
f56e54
 	if test -n "$hardcode_libdir_flag_spec"; then
f56e54
 	  if test -n "$hardcode_libdir_separator"; then
f56e54
 	    if test -z "$hardcode_libdirs"; then
f56e54
@@ -6120,6 +6122,7 @@ EOF
f56e54
       rpath=
f56e54
       hardcode_libdirs=
f56e54
       for libdir in $finalize_rpath; do
f56e54
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
f56e54
 	if test -n "$hardcode_libdir_flag_spec"; then
f56e54
 	  if test -n "$hardcode_libdir_separator"; then
f56e54
 	    if test -z "$hardcode_libdirs"; then