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

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