Re: [go-nuts] Linking C dynamic library non-standard location

2016-07-16 Thread Ian Lance Taylor
On Jul 16, 2016 2:10 PM, 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. >> >

Re: [go-nuts] Linking C dynamic library non-standard location

2016-07-16 Thread Lars Seipel
On Sat, Jul 16, 2016 at 02:10:38PM -0700, dan...@basereality.com wrote: > 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? Ian mentioned another way to achieve your goal: add the directory to the lis

Re: [go-nuts] Linking C dynamic library non-standard location

2016-07-16 Thread Danack
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 -ldfla

Re: [go-nuts] Linking C dynamic library non-standard location

2016-07-16 Thread Ian Lance Taylor
On Sat, Jul 16, 2016 at 11:40 AM, wrote: > > On Saturday, 16 July 2016 18:08:59 UTC+1, Ian Lance Taylor wrote: > >> >> My guess is that you need to either pass -R /temp/imagemagick-temp/lib >> to the linker, which you can do by setting CGO_LDFLAGS, > > > I get the same result when using CGO_CFLAG

Re: [go-nuts] Linking C dynamic library non-standard location

2016-07-16 Thread Danack
Hi Ian, On Saturday, 16 July 2016 18:08:59 UTC+1, Ian Lance Taylor wrote: > My guess is that you need to either pass -R /temp/imagemagick-temp/lib > to the linker, which you can do by setting CGO_LDFLAGS, > I get the same result when using CGO_CFLAGS and CGO_LDFLAGS rather than pkg-config. B

Re: [go-nuts] Linking C dynamic library non-standard location

2016-07-16 Thread Ian Lance Taylor
On Sat, Jul 16, 2016 at 6:20 AM, wrote: > > Can anyone tell me what I'm doing wrong when building a go program that uses > the ImageMagick library that has been installed to a non-standard location. > > What I think I'm seeing is that the program builds, but a flag telling the > program to look i

[go-nuts] Linking C dynamic library non-standard location

2016-07-16 Thread Danack
Hi, Can anyone tell me what I'm doing wrong when building a go program that uses the ImageMagick library that has been installed to a non-standard location. What I think I'm seeing is that the program builds, but a flag telling the program to look in the non-standard location for the dynamic