A macOS static linking mystery
Carter Schonwald
carter.schonwald at gmail.com
Mon Aug 8 18:17:21 UTC 2022
ahh, pkgconfig is what i was overlooking!
agreed with viktor, using the system provided one is definitely safer
On Mon, Aug 8, 2022 at 10:46 AM Viktor Dukhovni <ietf-dane at dukhovni.org>
wrote:
> On Mon, Aug 08, 2022 at 09:59:48AM -0400, Viktor Dukhovni wrote:
>
> > On my MacOS laptop I get:
> >
> > $ /usr/local/bin/pkg-config --libs libffi
> > -lffi
> >
> > which does not use the "brew"-installed libffi. Not surprising, since
> > /usr/local/lib/pkgconfig/ has no symlink to the "libffi.pc" file.
>
> When updating "libffi" HomeBrew reports:
>
> ==> libffi
> libffi is keg-only, which means it was not symlinked into /usr/local,
> because macOS already provides this software and installing another
> version in
> parallel can cause all kinds of trouble.
>
> For compilers to find libffi you may need to set:
> export LDFLAGS="-L/usr/local/opt/libffi/lib"
> export CPPFLAGS="-I/usr/local/opt/libffi/include"
>
> If the MacOS libffi works, it is probably safer to use it rather than
> the HomeBrew version.
>
> --
> Viktor.
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20220808/1434ee31/attachment.html>
More information about the ghc-devs
mailing list