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

f8cceb
diff -rup binutils.orig/ltmain.sh binutils-2.37/ltmain.sh
f8cceb
--- binutils.orig/ltmain.sh	2022-01-27 16:23:09.304207432 +0000
f8cceb
+++ binutils-2.37/ltmain.sh	2022-01-27 16:23:18.380143759 +0000
f8cceb
@@ -7103,6 +7103,7 @@ EOF
f8cceb
 	  rpath="$finalize_rpath"
f8cceb
 	  test "$mode" != relink && rpath="$compile_rpath$rpath"
f8cceb
 	  for libdir in $rpath; do
f8cceb
+	    case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
f8cceb
 	    if test -n "$hardcode_libdir_flag_spec"; then
f8cceb
 	      if test -n "$hardcode_libdir_separator"; then
f8cceb
 		if test -z "$hardcode_libdirs"; then
f8cceb
@@ -7798,6 +7799,7 @@ EOF
f8cceb
       rpath=
f8cceb
       hardcode_libdirs=
f8cceb
       for libdir in $compile_rpath $finalize_rpath; do
f8cceb
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
f8cceb
 	if test -n "$hardcode_libdir_flag_spec"; then
f8cceb
 	  if test -n "$hardcode_libdir_separator"; then
f8cceb
 	    if test -z "$hardcode_libdirs"; then
f8cceb
@@ -7849,6 +7851,7 @@ EOF
f8cceb
       rpath=
f8cceb
       hardcode_libdirs=
f8cceb
       for libdir in $finalize_rpath; do
f8cceb
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
f8cceb
 	if test -n "$hardcode_libdir_flag_spec"; then
f8cceb
 	  if test -n "$hardcode_libdir_separator"; then
f8cceb
 	    if test -z "$hardcode_libdirs"; then
f8cceb
Only in binutils-2.37: ltmain.sh.orig