Commit 9867ced9 authored by Russ Cox's avatar Russ Cox

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

Fixes #922.

R=r
CC=golang-dev
https://golang.org/cl/1664051
parent 7ca1f99c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment