Open rhaps0dy opened 9 years ago
See my patch to GHC in the following. It's for GHC-7.10. I just commented out the GHC source code to produce the error message. I succeeded in making resultant exe run on my phone.
BTW, I made a nix expression of GHC cross compiler for android as you see from the repo.
I built a GHC 8.0.1 cross compiler with the above patch, and now I can do arm-unknown-linux-androideabi-ghc -fPIC Test.hs
without getting the error about -fPIC
. However, when I build this repo, I still get the same ld.gold: fatal error: -shared and -r are incompatible
. Any idea how to fix it?
Hello. I am trying to compile the android-haskell-activity example. I get this error:
Because Android requires position independent code, I can't run it.
running ghc with the
-fPIC
option does not work either:Any clues to what might be causing this?