[Haskell-cafe] Re: FFI and LD_PRELOAD -> segfault
Anatoly Zaretsky
anatoly.zaretsky at gmail.com
Sun Sep 24 14:37:32 EDT 2006
On 9/24/06, Stephan Walter <news at stephan.walter.name> wrote:
> gcc -g -Wall -I/usr/lib/ghc-6.4.2/include -c -o hsinit.o hsinit.c
or
ghc -c hsinit.c
or even
ghc -Wall -optl "-shared" -o libtestffi.so \
hsinit.c testffi.o testffi_stub.o
Could anybody familiar with ghc linking details comment on this
constructor/destructor thing so that we can add a wiki about building
shared objects?
--
Tolik
More information about the Haskell-Cafe
mailing list