]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.5] net: add -lsendfile to cgo LDFLAGS for solaris
authorShenghou Ma <minux@golang.org>
Sun, 30 Aug 2015 21:22:40 +0000 (17:22 -0400)
committerAram Hăvărneanu <aram@mgk.ro>
Thu, 3 Sep 2015 08:53:27 +0000 (08:53 +0000)
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>
src/net/cgo_solaris.go

index 2d452b9e170e4ab7c04add10776c67f1e0557420..dd936dd3343e42a55917ff066a00f87c00e635a3 100644 (file)
@@ -7,7 +7,7 @@
 package net
 
 /*
-#cgo LDFLAGS: -lsocket -lnsl
+#cgo LDFLAGS: -lsocket -lnsl -lsendfile
 #include <netdb.h>
 */
 import "C"