[Haskell-cafe] Calling Haskell from C

Brandon Allbery allbery.b at gmail.com
Fri Jan 13 16:06:39 UTC 2017

On Fri, Jan 13, 2017 at 8:53 AM, <dominic at steinitz.org> wrote:

> export DYLD_LIBRARY_PATH=/Users/dom/Library/Haskell/ghc-8.0.1/lib/
> test-via-c-
> framework/Versions/8.0.1-x86_64/usr/lib/ghc-8.0.1/rts
That's a good way to break things. Consider DYLD_FALLBACK_LIBRARY_PATH
Also, use otool -l a.out to inspect the RPATH commands embedded in a.out;
that will tell you where dyld searches when it sees @rpath/Foo.dylib.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170113/3c554799/attachment.html>

More information about the Haskell-Cafe mailing list