]> Cypherpunks repositories - gostls13.git/commitdiff
Missing flags for FreeBSD shared link as used by cgo in default build.
authorWilliam Josephson <wjosephson@gmail.com>
Wed, 18 Nov 2009 17:18:51 +0000 (09:18 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 18 Nov 2009 17:18:51 +0000 (09:18 -0800)
R=rsc
https://golang.org/cl/157065

src/Make.pkg

index f7b850685f43d4beb4effc128dd96712c246a243..d763951d1dbe7146ed5defe93d6633508fdeb02c 100644 (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