-lrt and -lpthread order with static linking

Simon Marlow marlowsd at gmail.com
Thu Jan 24 14:14:38 CET 2013


On 24/01/13 05:58, Anatoly Yakovenko wrote:
> ghc places -lrt after -lpthread, causing pthread.a symbols to be missing
> when linking with -static

What platform? -lrt comes before -lpthread for me (x86_64/Linux).

> and just for kicks it generates a .o in /tmp that it deletes on exit, so
> i cant relink.  i think whoever added that owes me a beer.

-keep-tmp-files?

Cheers,
	Simon



More information about the ghc-devs mailing list