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

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