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

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