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/15eb350d0bf1
branches:  trunk
changeset: 813626:15eb350d0bf1
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 c8b86ee85d66 -r 15eb350d0bf1 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