mirror of
https://github.com/golang/go
synced 2024-11-22 05:54:40 -07:00
build: fix spaces in GOROOT
Fixes #1413. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4007041
This commit is contained in:
parent
274d095121
commit
31ccf19612
@ -167,7 +167,7 @@ _CGO_LDFLAGS_darwin=-dynamiclib -Wl,-undefined,dynamic_lookup
|
|||||||
_CGO_LDFLAGS_windows=-shared -lm -mthreads
|
_CGO_LDFLAGS_windows=-shared -lm -mthreads
|
||||||
|
|
||||||
# Have to compile the runtime header.
|
# Have to compile the runtime header.
|
||||||
RUNTIME_CFLAGS=-I"$(pkgdir)"
|
RUNTIME_CFLAGS=-I$(pkgdir)
|
||||||
|
|
||||||
# Compile _cgo_defun.c with 6c; needs access to the runtime headers.
|
# Compile _cgo_defun.c with 6c; needs access to the runtime headers.
|
||||||
_cgo_defun.$O: _cgo_defun.c
|
_cgo_defun.$O: _cgo_defun.c
|
||||||
|
@ -111,7 +111,7 @@ include ../../Make.pkg
|
|||||||
|
|
||||||
$(pkgdir)/%.h: %.h
|
$(pkgdir)/%.h: %.h
|
||||||
@test -d $(QUOTED_GOROOT)/pkg && mkdir -p $(pkgdir)
|
@test -d $(QUOTED_GOROOT)/pkg && mkdir -p $(pkgdir)
|
||||||
cp $< $@
|
cp $< "$@"
|
||||||
|
|
||||||
clean: clean-local
|
clean: clean-local
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ version_$(GOOS).go:
|
|||||||
(echo 'package runtime'; echo 'const theGoos = "$(GOOS)"') >$@
|
(echo 'package runtime'; echo 'const theGoos = "$(GOOS)"') >$@
|
||||||
|
|
||||||
%.c: %.goc goc2c
|
%.c: %.goc goc2c
|
||||||
./goc2c `pwd`/$< > $@.tmp
|
./goc2c "`pwd`/$<" > $@.tmp
|
||||||
mv -f $@.tmp $@
|
mv -f $@.tmp $@
|
||||||
|
|
||||||
%.$O: $(GOARCH)/%.c
|
%.$O: $(GOARCH)/%.c
|
||||||
|
Loading…
Reference in New Issue
Block a user