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

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