Blame SOURCES/gcc11-libtool-no-rpath.patch

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