]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix build on gri's machine
authorRuss Cox <rsc@golang.org>
Fri, 16 Dec 2011 23:31:09 +0000 (18:31 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 16 Dec 2011 23:31:09 +0000 (18:31 -0500)
Why it was not failing anywhere else I don't know,
but the Makefile was definitely wrong.  The rules
must not run in parallel.

TBR=r
CC=golang-dev
https://golang.org/cl/5489069

src/pkg/runtime/Makefile.auto

index 7c9ceb0fa71a135ef73e19e711e0e14da36e8e50..13db81aa9da0570fb68e45ac6f1756c0aeee3c83 100644 (file)
@@ -50,13 +50,6 @@ AUTO=\
        zsyscall_windows_amd64.c\
        zversion.go\
 
-HFILES=\
-       arch_GOARCH.h\
-       os_GOOS.h\
-       signals_GOOS.h\
-       defs_GOOS_GOARCH.h\
-       zasm_GOOS_GOARCH.h\
-
 all: auto
 auto: $(AUTO)
 
@@ -90,29 +83,19 @@ zgoarch_%.go:
        (echo '// AUTO-GENERATED; run make -f Makefile.auto'; echo; echo 'package runtime'; echo; echo 'const theGoarch = "$*"') >$@
 
 # definitions of runtime structs, translated from C to Go
-zruntime_defs_%.go: proc.c iface.c hashmap.c chan.c $(HFILES) mkgodefs.sh
+zruntime_defs_%.go: proc.c iface.c hashmap.c chan.c mkgodefs.sh
        ./mkgodefs.sh $* proc.c iface.c hashmap.c chan.c >$@.tmp
        mv -f $@.tmp $@
 
 # struct field offsets #defined for assembly
-zasm_%.h: mkasmh.sh proc.c $(HFILES)
+zasm_%.h: mkasmh.sh proc.c
        ./mkasmh.sh $* >$@.tmp
        mv -f $@.tmp $@
 
 clean:
        rm -f goc2c mkversion $(AUTO)
 
-arch_GOARCH.h: arch_$(GOARCH).h
-       cp $^ $@
-
-defs_GOOS_GOARCH.h: defs_$(GOOS)_$(GOARCH).h
-       cp $^ $@
-
-os_GOOS.h: os_$(GOOS).h
-       cp $^ $@
-
-signals_GOOS.h: signals_$(GOOS).h
-       cp $^ $@
-
-zasm_GOOS_GOARCH.h: zasm_$(GOOS)_$(GOARCH).h
-       cp $^ $@
+# This file must not run targets in parallel:
+# mkgodefs.sh and mkasmh.sh scribble on the same files.
+# This is a magic name known to GNU make.
+.NOTPARALLEL: