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

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