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 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

[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