On Jul 16, 2016 2:10 PM, <dan...@basereality.com> wrote:
>
> Hi Ian,
>
> On Saturday, 16 July 2016 20:05:26 UTC+1, Ian Lance Taylor wrote:
>>
>>
>> I'm suggesting that you need an additional option: -R
>> /temp/imagemagick-temp/lib.  You need to set the runtime library
>> search path to point to the right directory.
>>
>
> Thanks Ian,
>
> The command:
>
> go build -ldflags "-r /temp/imagemagick-temp/lib" debug.go
>
> produces an executable that finds the libraries correctly.
>
> Do you know if it's possible to set this option in an environment
variable, so that it isn't needed to be passed on each command line
operation?

See the linker docs for LD_RUN_PATH.

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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to