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

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