commit | c276d87c6c4ed332b55d89be7d408cb72b69a6ee | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Mon Dec 21 08:31:02 2009 -0800 |
committer | Russ Cox <rsc@golang.org> | Mon Dec 21 08:31:02 2009 -0800 |
tree | af891cbc4e786a3eb4a7c4274a10b3d9a8f1c900 | |
parent | fa98cf6eefce9266b44e8c44349a731918928d72 [diff] [blame] |
cgo: interpret $CGOPKGDIR as absolute path if rooted R=dho CC=golang-dev https://golang.org/cl/180099
diff --git a/src/Make.pkg b/src/Make.pkg index 890f43d..b315b2e 100644 --- a/src/Make.pkg +++ b/src/Make.pkg
@@ -23,7 +23,11 @@ TARG_words=$(subst /, ,$(TARG)) elem=$(word $(words $(TARG_words)),$(TARG_words)) -dir=$(patsubst %/$(elem),%,./$(TARG)) +ifeq ($(elem),$(TARG)) +dir= +else +dir=$(patsubst %/$(elem),%,$(TARG)) +endif # ugly hack to deal with whitespaces in $GOROOT nullstring :=