Module Name:    src
Committed By:   christos
Date:           Sun Sep 25 04:00:58 UTC 2011

Modified Files:
        src/tools/binutils: mknative-binutils

Log Message:
adjust for new gas Makefile


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tools/binutils/mknative-binutils

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/binutils/mknative-binutils
diff -u src/tools/binutils/mknative-binutils:1.7 src/tools/binutils/mknative-binutils:1.8
--- src/tools/binutils/mknative-binutils:1.7	Mon Nov  9 08:50:41 2009
+++ src/tools/binutils/mknative-binutils	Sun Sep 25 00:00:58 2011
@@ -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 @@ get_binutils () {
 
 	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

Reply via email to