If you mix dynamic libraries with static ones in the same folder the -L -l trick won't work. a workaround is to softlink the .a files to a separate folder so that the linker doesn't see the .so/.dylib files.
On Fri, Feb 9, 2018 at 12:11 PM, Jason E. Aten <[email protected]> wrote: >> Note that the _ALLOW environment variables hold a regular expression, >> so you could also write CGO_LDFLAGS_ALLOW='.*\.a'. > > > Thank you, Ian. That's much more palatable. > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
