* Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
[deliverable/binutils-gdb.git] / ld / emulparams / elf_x86_64.sh
index 1786e339467a5e5fd8d358e6e8a9aba801d5649c..146b55fb32db7c96c792cd1f5e9b1ae0bf502b10 100644 (file)
@@ -15,30 +15,16 @@ NO_SMALL_DATA=yes
 if [ "x${host}" = "x${target}" ]; then
   case " $EMULATION_LIBPATH " in
     *" ${EMULATION_NAME} "*)
-      # Native, and default or emulation requesting LIB_PATH.
-
-      # Linux modify the default library search path to first include
-      # a 64-bit specific directory.
-      case "$target" in
-        x86_64*-linux*)
-          suffix=64 ;;
-      esac
-
-      if [ -n "${suffix}" ]; then
-
-       LIB_PATH=/lib${suffix}:/lib
-       LIB_PATH=${LIB_PATH}:/usr/lib${suffix}:/usr/lib
-       if [ -n "${NATIVE_LIB_DIRS}" ]; then
-         LIB_PATH=${LIB_PATH}:`echo ${NATIVE_LIB_DIRS} | sed s_:_${suffix}:_g`${suffix}:${NATIVE_LIB_DIRS}
-       fi
-       if [ "${libdir}" != /usr/lib ]; then
-         LIB_PATH=${LIB_PATH}:${libdir}${suffix}:${libdir}
-       fi
-       if [ "${libdir}" != /usr/local/lib ]; then
-         LIB_PATH=${LIB_PATH}:/usr/local/lib${suffix}:/usr/local/lib
-       fi
-
-      fi
-    ;;
+      NATIVE=yes
   esac
 fi
+
+# Linux modify the default library search path to first include
+# a 64-bit specific directory.
+case "$target" in
+  x86_64*-linux*)
+    case "$EMULATION_NAME" in
+      *64*) LIBPATH_SUFFIX=$suffix ;;
+    esac
+    ;;
+esac
This page took 0.024065 seconds and 4 git commands to generate.