On Fri, Jun 23, 2017 at 2:52 PM, <
jkl...@ucdavis.edu> wrote:
> go version go1.7.4 linux/amd64
>
>
> The link you're referring to is an issue with the LANG env variable; mine is
> set to LANG=en_US.UTF-8 which the OP mentioned go build succeeds with
Is it possible that you are using a different version of gcc and g++?
Currently the go tool decides whether -no-pie is supported by testing
gcc. If you are using a newer version of gcc, then perhaps it is
incorrectly concluding that g++ supports -no-pie.
Ian
> On Friday, June 23, 2017 at 2:43:11 PM UTC-7, Ian Lance Taylor wrote:
>>
>> On Fri, Jun 23, 2017 at 2:09 PM, <
jkl...@ucdavis.edu> wrote:
>> >
>> > Hi, I'm trying to wrap a c++ library with swig to be called by Go.
>> >
>> > I've gotten "go build" to run up to the point to where I get the error:
>> > g++-4.8: error: unrecognized command line option '-no-pie'
>> >
>> > The library I'm using is only supported up to g++ 4.8. Is there any way
>> > around this command?
>>
>> Which version of Go are you using? You may be running into
>>
https://golang.org/issue/15900 or something along those lines.
>>
>> Ian
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.