components/golang/patches/0003-release-branch.go1.5-net-add-lsendfile-to-cgo-LDFLAG.patch
changeset 5331 9c955076ffe3
equal deleted inserted replaced
5330:c36e3195e3e9 5331:9c955076ffe3
       
     1 From 5aa3ba8673a060345e264216650cb145de124d66 Mon Sep 17 00:00:00 2001
       
     2 From: Shenghou Ma <[email protected]>
       
     3 Date: Sun, 30 Aug 2015 17:22:40 -0400
       
     4 Subject: [PATCH 03/63] [release-branch.go1.5] net: add -lsendfile to cgo
       
     5  LDFLAGS for solaris
       
     6 MIME-Version: 1.0
       
     7 Content-Type: text/plain; charset=UTF-8
       
     8 Content-Transfer-Encoding: 8bit
       
     9 
       
    10 Fixes external linking of net/http tests (or anything that uses
       
    11 sendfile).
       
    12 
       
    13 Fixes #12390.
       
    14 
       
    15 Change-Id: Iee08998cf66e7b0ce851db138a00ebae6dc2395e
       
    16 Reviewed-on: https://go-review.googlesource.com/14072
       
    17 Reviewed-by: Dave Cheney <[email protected]>
       
    18 Reviewed-by: Aram Hăvărneanu <[email protected]>
       
    19 Reviewed-on: https://go-review.googlesource.com/14246
       
    20 Run-TryBot: Chris Broadfoot <[email protected]>
       
    21 Reviewed-by: Minux Ma <[email protected]>
       
    22 ---
       
    23  src/net/cgo_solaris.go | 2 +-
       
    24  1 file changed, 1 insertion(+), 1 deletion(-)
       
    25 
       
    26 diff --git a/src/net/cgo_solaris.go b/src/net/cgo_solaris.go
       
    27 index 2d452b9..dd936dd 100644
       
    28 --- a/src/net/cgo_solaris.go
       
    29 +++ b/src/net/cgo_solaris.go
       
    30 @@ -7,7 +7,7 @@
       
    31  package net
       
    32  
       
    33  /*
       
    34 -#cgo LDFLAGS: -lsocket -lnsl
       
    35 +#cgo LDFLAGS: -lsocket -lnsl -lsendfile
       
    36  #include <netdb.h>
       
    37  */
       
    38  import "C"
       
    39 -- 
       
    40 2.6.1
       
    41