3

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.

4

1 に答える 1

1

Leopard は一定期間ノーパイを取り除きました: http://trac.macports.org/ticket/34064

コメントにあるように、xcode/ld を最新バージョンにアップグレードすると、フラグが有効になります。

于 2013-02-05T00:46:38.183 に答える