Blame SOURCES/binutils-2.20.51.0.2-ia64-lib64.patch

f55871
2004-05-14  Jakub Jelinek  <jakub@redhat.com>
f55871
f55871
	* emulparams/elf64_ia64.sh (LIBPATH_SUFFIX): Use */lib64 paths on
f55871
	ia64-linux if /lib64 tree is present.
f55871
f55871
--- ../binutils-2.19.50.0.1.orig/ld/emulparams/elf64_ia64.sh	2008-11-21 16:45:00.000000000 +0000
f55871
+++ ld/emulparams/elf64_ia64.sh	2008-11-21 16:55:46.000000000 +0000
f55871
@@ -38,3 +38,13 @@ OTHER_READONLY_SECTIONS="${OTHER_READONL
f55871
 SMALL_DATA_CTOR=" "
f55871
 SMALL_DATA_DTOR=" "
f55871
 SHARABLE_SECTIONS=yes
f55871
+
f55871
+# For Linux modify the default library search path
f55871
+# to first include a 64-bit specific directory.
f55871
+case "$target" in
f55871
+  ia64*-linux*)
f55871
+    case "$EMULATION_NAME" in
f55871
+      *64*) test -d /lib64 && LIBPATH_SUFFIX=64 ;;
f55871
+    esac
f55871
+    ;;
f55871
+esac