Missing flags for FreeBSD shared link as used by cgo in default build.

R=rsc
https://golang.org/cl/157065
This commit is contained in:
William Josephson 2009-11-18 09:18:51 -08:00 committed by Russ Cox
parent 57f62f6eae
commit 72e7444ad4

View File

@ -103,6 +103,7 @@ RUNTIME_CFLAGS=-I$(GOROOT)/src/pkg/runtime $(RUNTIME_CFLAGS_$(GOARCH))
# Have to run gcc with the right size argument on hybrid 32/64 machines.
_CGO_CFLAGS_386=-m32
_CGO_CFLAGS_amd64=-m64
_CGO_LDFLAGS_freebsd=-shared -lpthread -lm
_CGO_LDFLAGS_linux=-shared -lpthread -lm
_CGO_LDFLAGS_darwin=-dynamiclib -Wl,-undefined,dynamic_lookup