Dear ghc-devs,
There is a commonly used library which has at least one function
that when compiled into a program, requires the threaded run time
system. Without the threaded runtime, the program just hangs.
One kludgy solution to this problem is to have the function check
for
Omer, this ticket may be of interest to you:
https://ghc.haskell.org/trac/ghc/ticket/7790
Edward
Excerpts from Ömer Sinan Ağacan's message of 2015-08-14 03:51:49 -0700:
Here's an example that fails with a link time error when -threaded is not
used:
➜ rts_test ghc --make Main.hs
Here's an example that fails with a link time error when -threaded is not used:
➜ rts_test ghc --make Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main ...
Main.o: In function `rn4_info':
(.text+0x26): undefined reference to `wakeUpRts'