Source-Changes-HG archive

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

[src/trunk]: src/tools/binutils adjust for new gas Makefile



details:   https://anonhg.NetBSD.org/src/rev/7e659ba20296
branches:  trunk
changeset: 769853:7e659ba20296
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Sep 25 04:00:58 2011 +0000

description:
adjust for new gas Makefile

diffstat:

 tools/binutils/mknative-binutils |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r c1e4e047dfb9 -r 7e659ba20296 tools/binutils/mknative-binutils
--- a/tools/binutils/mknative-binutils  Sat Sep 24 22:53:50 2011 +0000
+++ b/tools/binutils/mknative-binutils  Sun Sep 25 04:00:58 2011 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-binutils,v 1.7 2009/11/09 13:50:41 skrll Exp $
+#      $NetBSD: mknative-binutils,v 1.8 2011/09/25 04:00:58 christos Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/external/gpl3/binutils
@@ -91,9 +91,13 @@
 
        mkdir -p $_TOP/external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH
 
-       getvars gas/Makefile \
-               DEFS INCLUDES OBJS \
-               | write_mk external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH/defs.mk
+       grep -v DEPDIR "$_TMPDIR/gas/Makefile" > "$_TMPDIR/gas/Makefile.nodeps"
+       getvars gas/Makefile.nodeps \
+                DEFS INCLUDES as_new_OBJECTS as_new_LDADD | 
+       sed     -e s/G_as_new_OBJECTS/G_OBJS/ \
+               -e s/G_as_new_LDADD=/G_OBJS+=/ \
+               -e 's/\.\..*a//' |
+       write_mk external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH/defs.mk
 
        for f in config itbl-cpu obj-format targ-cpu targ-env; do
                write_c external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gas/$f.h



Home | Main Index | Thread Index | Old Index