Android crosscompiler
Nathan Hüsken <[email protected]> Thu, 03 Jan 2013 20:06:54 +0100
| Newsgroups | gmane.comp.lang.haskell.cvs.ghc |
|---|---|
| Message-ID | <[email protected]> |
Hey, I would like to compile haskell to android using the android ndk. I saw this message for blackberry: http://web.archiveorange.com/archive/v/j7U5dAvNego9GwzeIPFn I thought, well, than it should somehow work for android too. So I fetched ghc cvs and tried to do something similar as the patch for blackberry (without knowing what I am doing). Now, configure: ./configure --target=arm-linux-androideabi --build=i686-linux-gnu --host=arm-linux-androideabi --with-sysroot=/home/ls/src/android-ndk/platforms/android-14/arch-arm fails with: configure: error: C compiler cannot create executables I am passing the "-with-sysroot" parameter, because arm-linux-androideabi-gcc test.c --sysroot=/home/ls/src/android-ndk/platforms/android-14/arch-arm works. Looking at config.log, it seems the --sysroot is not passed to arm-linux-androideabi-gcc. Now, I do not know if the problem has something to do with the ghc build system, or if it is general autotools related. Am I on the right track for building haskell programs on android? Can anyone give advise what to do to reach this goal? I am willing to put time into this, but I do not really know where to start... Thanks! Nathan