
I made this patch after noticing that John Goerzen's ldap-haskell package
doesn't compile (with recent versions of OpenLDAP) because the hsc2hs call
fails with a linking error. hsc2hs compiles and links a C program to generate
the final .hs file. It turned out that the .c file was referencing not just
constants from the ldap.h file but things which translated into linker symbols.
So when it linked there were missing symbols. The solution is this case is to
pass -L-lldap to hsc2hs.
So this patch does that in the general case, all extra-libaries are passed
to hsc2hs (prefixed with --lflag=-l).
Tue Jul 4 01:19:26 BST 2006 Duncan Coutts