From 5f2c420eb6f82545bfba835a467ee1e998ba37d1 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sun, 30 Aug 2015 17:22:40 -0400 Subject: [PATCH] net: add -lsendfile to cgo LDFLAGS for solaris MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/net/cgo_solaris.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.48.1