From 9e121a34e1db97f6e100a0d50e276cea16255baf Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 27 Feb 2013 15:16:52 -0400 Subject: fix android cross compile, working around cabal limitation --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 62c198d09..4f5b526ef 100644 --- a/Makefile +++ b/Makefile @@ -163,8 +163,12 @@ osxapp: # Cross compile for Android. # Uses https://github.com/neurocyte/ghc-android android: + cabal configure +# cabal cannot cross compile with custom build type, so workaround + sed -i 's/Build-type: Custom/Build-type: Simple/' git-annex.cabal $$HOME/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/cabal configure -f'Android Assistant -Pairing -Webapp' $(MAKE) git-annex + sed -i 's/Build-type: Simple/Build-type: Custom/' git-annex.cabal androidapp: $(MAKE) android -- cgit v1.2.3