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:
parent
77e528293b
commit
5f2c420eb6
@ -7,7 +7,7 @@
|
||||
package net
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -lsocket -lnsl
|
||||
#cgo LDFLAGS: -lsocket -lnsl -lsendfile
|
||||
#include <netdb.h>
|
||||
*/
|
||||
import "C"
|
||||
|
Loading…
Reference in New Issue
Block a user