From 72e7444ad4d222aa26818f45cb40ef80a6a176e9 Mon Sep 17 00:00:00 2001 From: William Josephson Date: Wed, 18 Nov 2009 09:18:51 -0800 Subject: [PATCH] Missing flags for FreeBSD shared link as used by cgo in default build. R=rsc https://golang.org/cl/157065 --- src/Make.pkg | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Make.pkg b/src/Make.pkg index f7b850685f..d763951d1d 100644 --- a/src/Make.pkg +++ b/src/Make.pkg @@ -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 -- 2.51.0