haskell - Using a c .a file installed by os in a cabal package? -


i want add foreign function defined in static library (.a) file cabal package. libsdl2_test2.a distributed libsdl2.

what correct , portable way of doing so? note field extra-libraries handles shared object (.so) files.

there few evils in world tell children watch out for. placing pre-compiled binaries inside of cabalized package such dark evil can't bring myself tell them - hope issue never arises.

the best solution

if want distribute binaries select platform (operating system , architecture) of choice , make binary distribution. means making .deb, .rpm, .msi, homebrew, or macports packages.

an alternative

if must place monstrosity in .cabal mikhail has right idea. can specify extra-source-files in .cabal file distribute binaries. how intel-aes package allowed users leverage aes-ni before compilers had support instruction.


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -