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