[英]Compiling a cabal project with LLVM on GHC 7.10 RC1
I've tried: 我试过了:
$ cabal install --only-dependencies -w /usr/local/bin/ghc-7.10.0.20141222 --enable-tests --enable-benchmarks --ghc-option=-fllvm --ghc-option=-static
$ cabal configure -w /usr/local/bin/ghc-7.10.0.20141222 --enable-tests --enable-benchmarks --ghc-option=-fllvm --ghc-option=-static
$ cabal build
Building unagi-chan-0.3.0.0...
Preprocessing library unagi-chan-0.3.0.0...
when making flags consistent: Warning:
Using native code generator rather than LLVM, as LLVM is incompatible with -fPIC and -dynamic on this platform
I don't see anything referencing "PIC" in the output of cabal build -v
. 我在cabal build -v
的输出中看不到任何引用“ PIC”的东西。
我想我需要--disable-shared
:
cabal configure -w /usr/local/bin/ghc-7.10.0.20141222 --enable-tests --enable-benchmarks --ghc-option=-fllvm --ghc-option=-static --disable-shared
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.