1
0
mirror of https://github.com/golang/go synced 2024-11-19 15:54:46 -07:00

cgo: use new command line syntax: -- separates cgo flags from gcc flags

Fixes #922.

R=r
CC=golang-dev
https://golang.org/cl/1664051
This commit is contained in:
Russ Cox 2010-07-15 09:41:21 -07:00
parent 7ca1f99c4f
commit 9867ced972

View 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