1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:47:57 -07:00

runtime: fix build

TBR=r
CC=golang-dev
https://golang.org/cl/5493061
This commit is contained in:
Russ Cox 2011-12-16 15:46:25 -05:00
parent 851f30136d
commit 95907c4752
3 changed files with 11 additions and 5 deletions

View File

@ -245,5 +245,5 @@ endif
%.$O: _obj/%.c $(HFILES)
$(CC) $(CFLAGS) -I . -o "$@" _obj/$*.c
%.$O: %.s
%.$O: %.s $(HFILES)
$(AS) $*.s

View File

@ -51,6 +51,11 @@ OFILES_windows=\
OFILES_386=\
vlop_386.$O\
vlrt_386.$O\
traceback_x86.$O\
# amd64-specific object files
OFILES_amd64=\
traceback_x86.$O\
# arm-specific object files
OFILES_arm=\
@ -58,6 +63,7 @@ OFILES_arm=\
softfloat_arm.$O\
vlop_arm.$O\
vlrt_arm.$O\
traceback_x86.$O\
OFILES=\
alg.$O\
@ -97,7 +103,6 @@ OFILES=\
sys_$(GOOS)_$(GOARCH).$O\
thread_$(GOOS).$O\
time.$O\
traceback_$(GOARCH).$O\
$(OFILES_$(GOARCH))\
$(OFILES_$(GOOS))\
@ -113,6 +118,7 @@ HFILES=\
hashmap.h\
malloc.h\
stack.h\
asm_$(GOARCH).h\
$(AUTOHFILES)\
GOFILES+=$(GOFILES_$(GOOS))
@ -157,10 +163,8 @@ version_$(GOOS).go:
./goc2c "`pwd`/$<" > $@.tmp
mv -f $@.tmp $@
%.$O: asm_$(GOARCH).h
# for discovering offsets inside structs when debugging
runtime.acid.$(GOARCH): runtime.h proc.c
runtime.acid.$(GOARCH): runtime.h proc.c $(AUTOHFILES)
$(CC) $(CFLAGS) -a proc.c >$@
# 386 traceback is really amd64 traceback

View File

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build amd64 386
#include "runtime.h"
#include "arch_GOARCH.h"
#include "malloc.h"