1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00

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>
This commit is contained in:
Shenghou Ma 2015-08-30 17:22:40 -04:00 committed by Aram Hăvărneanu
parent 77e528293b
commit 5f2c420eb6

View File

@ -7,7 +7,7 @@
package net
/*
#cgo LDFLAGS: -lsocket -lnsl
#cgo LDFLAGS: -lsocket -lnsl -lsendfile
#include <netdb.h>
*/
import "C"