GHC - Mac OS X - ld: unknown: -no_pie

When I try to compile a simple Hello World in Haskell and compile with ghc --make Main.hs
I get:
Binding Home ...
ld: unknown option: -no_pie
collect2: ld returned 1 exit status

I am on Mac OS X 10.6.8. I used to be able to compile without this error, but I did not use the GHC for a while, so I had to install or break something during this period.

+3
source share
1 answer

Leopard got rid of no-pie for the period: http://trac.macports.org/ticket/34064

As noted by comments, updating the xcode / ld flag to later versions includes a flag.

+1
source

All Articles