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

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