From 9867ced972d018715f7a44693eb644ac259e74c1 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 15 Jul 2010 09:41:21 -0700 Subject: [PATCH] cgo: use new command line syntax: -- separates cgo flags from gcc flags Fixes #922. R=r CC=golang-dev https://golang.org/cl/1664051 --- src/Make.pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Make.pkg b/src/Make.pkg index 39c19611e3..ac1198e161 100644 --- a/src/Make.pkg +++ b/src/Make.pkg @@ -108,7 +108,7 @@ dir: # _cgo_defun.c _cgo_gotypes.go _cgo_export.c _cgo_export.h: $(CGOFILES) - CGOPKGPATH=$(dir) $(QUOTED_GOBIN)/cgo $(CGO_CFLAGS) $(CGOFILES) + CGOPKGPATH=$(dir) $(QUOTED_GOBIN)/cgo -- $(CGO_CFLAGS) $(CGOFILES) # Ugly but necessary %.cgo1.go: _cgo_defun.c _cgo_gotypes.go