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

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