Re: Android crosscompiler

Stephen Paul Weber <[email protected]> Thu, 3 Jan 2013 14:14:12 -0500
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <20130103191412.GD1808@singpolyma-svelti>
Somebody claiming to be Nathan Hüsken wrote:
>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
>
>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.

I'm no autotools export, but I'm pretty sure that unless --with-sysroot is 
explicitly defined, it does  not exist.

Ideally you would install arm-linux-androideabi-gcc such that this argument 
is not needed, or use an environment variable.  You could also create 
a shell alias or shell script wrapper that adds the required flag.

>Am I on the right track for building haskell programs on android?

Seems likely to be the right path, though I have no NDK experience.

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJQ5diDAAoJENEcKRHOUZze/EMP+wb5oPXGXS6gkf5CyZ9l7g18
wH9WTlYa4N/DZ4LdCyL3vEvZMVw8kwjc6OBXotiPTkOwCZR9FfNyXGxVE6OP4q8V
E7RbyecBE03g6XjPVgLibSjfos/O3zcJABetqkMNqed/IDYujc/XxHCpvMe1oaVO
QZaOnZ+uAXk/ZY9hLQ1YE/LEwRB6lLc1hgpzLslcXOqxq1BgMyk+8fbRG2Fj1TEl
GAn/5ES6S7J+E0nNA5BTM8VVVkDsxBEWJMz+OTwhj3/LWlLEtyMR3TsJyZGDI1SE
s9GzRAferozLGxUgWkGTmNt7Nc8Uj4YgDbMQ0JSZJsSMPBVbFWhpf40r4hB/uqJC
ywFPuYyV9utcm0shvvW/6+RdCaMtgOPSXEhmcQeceG6rRzZ2fQV48lLHtRoz36HH
c+CefYgj7DhFrGGmOMiF/uuZeP6nybler15EUG3u7HsnEjnGsk1wviBELWwaYrfG
XiDxgbFlIHLGMi6JiShKu7R7D9rzwFyql/iQ5VKf5yVfbODl4JfdhMhbWiYZr4oF
tdqmaWhEeO9YowugvStoKbcekix0AuTU4U6PhVbmY5aHbI3O/Vj1HHZuWJk0Vu1L
aJmg5qt6j5/2+bH31ra47+nJlSGW4HracNn177YNQJQ5YL1BsW16vUJ3f+dxiZDb
BhpVqlTeVkxcbNpqqiqj
=jlLk
-----END PGP SIGNATURE-----