Commit 5f2c420e authored by Shenghou Ma's avatar Shenghou Ma Committed by Aram Hăvărneanu

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/14072Reviewed-by: default avatarDave Cheney <dave@cheney.net>
Reviewed-by: default avatarAram Hăvărneanu <aram@mgk.ro>
parent 77e52829
......@@ -7,7 +7,7 @@
package net
/*
#cgo LDFLAGS: -lsocket -lnsl
#cgo LDFLAGS: -lsocket -lnsl -lsendfile
#include <netdb.h>
*/
import "C"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment