Reputation: 311
When I try to compile a simple Hello World in Haskell and compile with
ghc --make Main.hs
I get:
Linking Main ...
ld: unknown option: -no_pie
collect2: ld returned 1 exit status
I'm on Mac OS X 10.6.8. I used to be able to compile without this error, but I haven't used GHC for a while, so I must've installed or broken something in that period.
Upvotes: 3
Views: 2750
Reputation: 38891
Leopard got rid of no-pie for a period: http://trac.macports.org/ticket/34064
As the comments note, upgrading xcode/ld to more recent versions enables the flag.
Upvotes: 1