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

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