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

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