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

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