<div dir="ltr"><div>ahh, pkgconfig is what i was overlooking!</div><div><br></div><div>agreed with viktor, using the system provided one is definitely safer<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 8, 2022 at 10:46 AM Viktor Dukhovni <<a href="mailto:ietf-dane@dukhovni.org">ietf-dane@dukhovni.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Aug 08, 2022 at 09:59:48AM -0400, Viktor Dukhovni wrote:<br>
<br>
> On my MacOS laptop I get:<br>
> <br>
> $ /usr/local/bin/pkg-config --libs libffi<br>
> -lffi<br>
> <br>
> which does not use the "brew"-installed libffi. Not surprising, since<br>
> /usr/local/lib/pkgconfig/ has no symlink to the "libffi.pc" file.<br>
<br>
When updating "libffi" HomeBrew reports:<br>
<br>
==> libffi<br>
libffi is keg-only, which means it was not symlinked into /usr/local,<br>
because macOS already provides this software and installing another version in<br>
parallel can cause all kinds of trouble.<br>
<br>
For compilers to find libffi you may need to set:<br>
export LDFLAGS="-L/usr/local/opt/libffi/lib"<br>
export CPPFLAGS="-I/usr/local/opt/libffi/include"<br>
<br>
If the MacOS libffi works, it is probably safer to use it rather than<br>
the HomeBrew version.<br>
<br>
-- <br>
Viktor.<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>