mirror of
https://github.com/golang/go
synced 2024-11-21 18:24:46 -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
|
||||
|
||||
# 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.
|
||||
_cgo_defun.$O: _cgo_defun.c
|
||||
|
@ -111,7 +111,7 @@ include ../../Make.pkg
|
||||
|
||||
$(pkgdir)/%.h: %.h
|
||||
@test -d $(QUOTED_GOROOT)/pkg && mkdir -p $(pkgdir)
|
||||
cp $< $@
|
||||
cp $< "$@"
|
||||
|
||||
clean: clean-local
|
||||
|
||||
@ -138,7 +138,7 @@ version_$(GOOS).go:
|
||||
(echo 'package runtime'; echo 'const theGoos = "$(GOOS)"') >$@
|
||||
|
||||
%.c: %.goc goc2c
|
||||
./goc2c `pwd`/$< > $@.tmp
|
||||
./goc2c "`pwd`/$<" > $@.tmp
|
||||
mv -f $@.tmp $@
|
||||
|
||||
%.$O: $(GOARCH)/%.c
|
||||
|
Loading…
Reference in New Issue
Block a user