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

ed1ed2
libtool sucks.
ed1ed2
--- ltmain.sh.jj	2007-12-07 14:53:21.000000000 +0100
ed1ed2
+++ ltmain.sh	2008-09-05 21:51:48.000000000 +0200
ed1ed2
@@ -5394,6 +5394,7 @@ EOF
ed1ed2
 	  rpath="$finalize_rpath"
ed1ed2
 	  test "$mode" != relink && rpath="$compile_rpath$rpath"
ed1ed2
 	  for libdir in $rpath; do
ed1ed2
+	    case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
ed1ed2
 	    if test -n "$hardcode_libdir_flag_spec"; then
ed1ed2
 	      if test -n "$hardcode_libdir_separator"; then
ed1ed2
 		if test -z "$hardcode_libdirs"; then
ed1ed2
@@ -6071,6 +6072,7 @@ EOF
ed1ed2
       rpath=
ed1ed2
       hardcode_libdirs=
ed1ed2
       for libdir in $compile_rpath $finalize_rpath; do
ed1ed2
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
ed1ed2
 	if test -n "$hardcode_libdir_flag_spec"; then
ed1ed2
 	  if test -n "$hardcode_libdir_separator"; then
ed1ed2
 	    if test -z "$hardcode_libdirs"; then
ed1ed2
@@ -6120,6 +6122,7 @@ EOF
ed1ed2
       rpath=
ed1ed2
       hardcode_libdirs=
ed1ed2
       for libdir in $finalize_rpath; do
ed1ed2
+	case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
ed1ed2
 	if test -n "$hardcode_libdir_flag_spec"; then
ed1ed2
 	  if test -n "$hardcode_libdir_separator"; then
ed1ed2
 	    if test -z "$hardcode_libdirs"; then