Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/ld/emulparams Override default L...



details:   https://anonhg.NetBSD.org/src/rev/a7c4cfe1ab5b
branches:  trunk
changeset: 343484:a7c4cfe1ab5b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Feb 06 19:22:00 2016 +0000

description:
Override default LIB_PATH for i386 emulation. Unlike older binutils, we
now have to check the emulation and not that the target as the change
otherwise leaks into the native 64bit linker scripts as well.

diffstat:

 external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r da98549ce4be -r a7c4cfe1ab5b external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh
--- a/external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh     Sat Feb 06 19:20:49 2016 +0000
+++ b/external/gpl3/binutils/dist/ld/emulparams/elf_i386.sh     Sat Feb 06 19:22:00 2016 +0000
@@ -19,10 +19,11 @@
 
 case "$target" in
   x86_64-*-netbsd*)
-    # Don't override autoconf entry
-    if [ -z "$LIB_PATH" ]; then
-      LIB_PATH='=/usr/lib/i386'
-    fi
+    case "$EMULATION_NAME" in
+      *i386*)
+       LIB_PATH='=/usr/lib/i386'
+       ;;
+    esac
     ;;
 esac
 



Home | Main Index | Thread Index | Old Index