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

82154a
diff -rupN --no-dereference binutils-2.39/ltmain.sh binutils-2.39-new/ltmain.sh
82154a
--- binutils-2.39/ltmain.sh	2022-07-08 11:46:48.000000000 +0200
82154a
+++ binutils-2.39-new/ltmain.sh	2022-10-30 12:41:38.049023801 +0100
fcd040
@@ -7103,6 +7103,7 @@ EOF
fcd040
 	  rpath="$finalize_rpath"
fcd040
 	  test "$mode" != relink && rpath="$compile_rpath$rpath"
fcd040
 	  for libdir in $rpath; do
fcd040
+	    case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
fcd040
 	    if test -n "$hardcode_libdir_flag_spec"; then
fcd040
 	      if test -n "$hardcode_libdir_separator"; then
fcd040
 		if test -z "$hardcode_libdirs"; then
fcd040
@@ -7798,6 +7799,7 @@ EOF
fcd040
       rpath=
fcd040
       hardcode_libdirs=
fcd040
       for libdir in $compile_rpath $finalize_rpath; do
fcd040
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
fcd040
 	if test -n "$hardcode_libdir_flag_spec"; then
fcd040
 	  if test -n "$hardcode_libdir_separator"; then
fcd040
 	    if test -z "$hardcode_libdirs"; then
fcd040
@@ -7849,6 +7851,7 @@ EOF
fcd040
       rpath=
fcd040
       hardcode_libdirs=
fcd040
       for libdir in $finalize_rpath; do
fcd040
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
fcd040
 	if test -n "$hardcode_libdir_flag_spec"; then
fcd040
 	  if test -n "$hardcode_libdir_separator"; then
fcd040
 	    if test -z "$hardcode_libdirs"; then