[Haskell-cafe] Calling Haskell from C

Brandon Allbery allbery.b at gmail.com
Sat Jan 14 12:48:58 UTC 2017


On Sat, Jan 14, 2017 at 8:45 AM, <dominic at steinitz.org> wrote:

> Apologies. I put the output of “-l” (not “-L”) here:
> https://gist.github.com/idontgetoutmuch/654007ac57e863a293b76a0cf98250c1
>
> I couldn’t immediately see anything that tells me how @rpath is resolved.
>

Hm, no RPATH entries indeed. There's no fallback for executables, so it's
probably not even looking for the library but just failing immediately. You
could probably make this work by forcing an RPATH entry (-Wl,-rpath,...).
(Or, use "install_name_tool -add_rpath the_path_here a.out" to patch one
into the existing binary.)

-- 
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/20170114/b563ad75/attachment.html>


More information about the Haskell-Cafe mailing list