You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The helloworld example comes with library target which will result in a libHShelloworld_something_.so and I'd like to link this dynamic library later on with a C project.
When I build the example using cabal, the resulting library will be located somewhere inside the dist folder and contains the symbols of the exposed module.
$ cabal build
$ nm dist/build/libHShelloworld-1.0-ghc7.8.4.so
...
U rts_unlock
00000000002020b8 d S1dz_srt
000000000000138d T someFunc
U stg_bh_upd_frame_info
00000000000013e1 t stginit_export_helloworldzm1zi0_Lib_zdfstableZZC0ZZChelloworldzzm1zzi0ZZCLibZZCsomeFunc
...
But when I do the same with stack I end up with a dynamic library which does not export any symbols.
$ stack build
$ nm .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHShelloworld-1.0-E7IpCWBehUOItxSp94BHC3-ghc7.10.3.so
nm: .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/libHShelloworld-1.0-E7IpCWBehUOItxSp94BHC3-ghc7.10.3.so: no symbols
Is this a bug, or do Ijust need to supply an additional flag?
The text was updated successfully, but these errors were encountered:
The helloworld example comes with library target which will result in a
libHShelloworld_something_.so
and I'd like to link this dynamic library later on with a C project.When I build the example using cabal, the resulting library will be located somewhere inside the
dist
folder and contains the symbols of the exposed module.But when I do the same with stack I end up with a dynamic library which does not export any symbols.
Is this a bug, or do Ijust need to supply an additional flag?
The text was updated successfully, but these errors were encountered: