build error on FreeBSD

Kazu Yamamoto ( 山本和彦 ) kazu at iij.ad.jp
Thu Mar 14 03:07:05 CET 2013


> The same error occurs on NetBSD/amd64. PrimopWrappers.dyn_o has a
> direct reference to newSpark but since it resides in the rts, not
> ghc-prim, such references must be redirected through PLT. The problem
> is that every *.dyn_o, not only PrimopWrappers.dyn_o, is compiled
> without -fPIC for OSes other than Windows, Darwin and Linux.
> 
> I have no idea why -fPIC isn't enabled for all OSes in the first
> place, but the attached patch works at least for me.

Thanks. This patch also solves the problem in my environment.

Would you create a ticket and attach your patch? > PHO

--Kazu



More information about the ghc-devs mailing list