diff --git a/src/pkg/runtime/Makefile b/src/pkg/runtime/Makefile index 6571d802d4d..a8e7bc75091 100644 --- a/src/pkg/runtime/Makefile +++ b/src/pkg/runtime/Makefile @@ -132,7 +132,7 @@ version.go: mkversion ./mkversion >version.go %.c: %.goc goc2c - ./goc2c $< > $@.tmp + ./goc2c `pwd`/$< > $@.tmp mv -f $@.tmp $@ %.$O: $(GOARCH)/%.c diff --git a/src/pkg/runtime/goc2c.c b/src/pkg/runtime/goc2c.c index 385b885855b..826ceff3ab1 100644 --- a/src/pkg/runtime/goc2c.c +++ b/src/pkg/runtime/goc2c.c @@ -28,7 +28,7 @@ static int gcc; /* File and line number */ static const char *file; -static unsigned int lineno; +static unsigned int lineno = 1; /* List of names and types. */ struct params {