From: Shenghou Ma Date: Sun, 30 Aug 2015 21:22:40 +0000 (-0400) Subject: net: add -lsendfile to cgo LDFLAGS for solaris X-Git-Tag: go1.6beta1~1224 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5f2c420eb6f82545bfba835a467ee1e998ba37d1;p=gostls13.git net: add -lsendfile to cgo LDFLAGS for solaris Fixes external linking of net/http tests (or anything that uses sendfile). Fixes #12390. Change-Id: Iee08998cf66e7b0ce851db138a00ebae6dc2395e Reviewed-on: https://go-review.googlesource.com/14072 Reviewed-by: Dave Cheney Reviewed-by: Aram Hăvărneanu --- diff --git a/src/net/cgo_solaris.go b/src/net/cgo_solaris.go index 2d452b9e17..dd936dd334 100644 --- a/src/net/cgo_solaris.go +++ b/src/net/cgo_solaris.go @@ -7,7 +7,7 @@ package net /* -#cgo LDFLAGS: -lsocket -lnsl +#cgo LDFLAGS: -lsocket -lnsl -lsendfile #include */ import "C"