diff options
author | Shenghou Ma <minux@golang.org> | 2015-08-30 17:22:40 -0400 |
---|---|---|
committer | Aram Hăvărneanu <aram@mgk.ro> | 2015-09-03 08:53:27 +0000 |
commit | 5aa3ba8673a060345e264216650cb145de124d66 (patch) | |
tree | 97ead315cf80c91ae7a12cac367da628b8f62557 | |
parent | a1350a1f7b8d7c5eb8117941bb77708836411b3c (diff) | |
download | go-5aa3ba8673a060345e264216650cb145de124d66.tar.gz go-5aa3ba8673a060345e264216650cb145de124d66.zip |
[release-branch.go1.5] 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 <dave@cheney.net>
Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
Reviewed-on: https://go-review.googlesource.com/14246
Run-TryBot: Chris Broadfoot <cbro@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
-rw-r--r-- | src/net/cgo_solaris.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 <netdb.h> */ import "C" |