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

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