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

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