]> Cypherpunks repositories - gostls13.git/commitdiff
cgo: use new command line syntax: -- separates cgo flags from gcc flags
authorRuss Cox <rsc@golang.org>
Thu, 15 Jul 2010 16:41:21 +0000 (09:41 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 15 Jul 2010 16:41:21 +0000 (09:41 -0700)
Fixes #922.

R=r
CC=golang-dev
https://golang.org/cl/1664051

src/Make.pkg

index 39c19611e327685ecf281ac1d8ee1a18df0d1c1b..ac1198e161d9c7b316cec348c8941d23fe784dc6 100644 (file)
@@ -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