X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/957060d6a33a6ae49ec0f31dcc0236e2af79bb63..cdd8e2edc69fe01a992449d5bf890398d72da4ff:/disabled-packages/ghc/build.sh diff --git a/disabled-packages/ghc/build.sh b/disabled-packages/ghc/build.sh index 2d1e87e0..663a1ff9 100644 --- a/disabled-packages/ghc/build.sh +++ b/disabled-packages/ghc/build.sh @@ -1,5 +1,8 @@ # See https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling # https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Linux +# and +# https://github.com/neurocyte/ghc-android +# Status: Current GHC does not support llvm 3.7. TERMUX_PKG_HOMEPAGE=https://www.haskell.org/ghc/ TERMUX_PKG_DESCRIPTION="The Glasgow Haskell Compilation system" TERMUX_PKG_VERSION=7.10.2 @@ -30,6 +33,10 @@ unset PKG_CONFIG unset RANLIB termux_step_pre_configure () { - echo "GhcStage2HcOpts = $ORIG_CFLAGS $ORIG_CPPFLAGS $ORIG_LDFLAGS" > mk/build.mk - echo "INTEGER_LIBRARY = integer-simple" >> mk/build.mk + echo "INTEGER_LIBRARY = integer-simple" > mk/build.mk + #echo "GhcStage2HcOpts = $ORIG_CFLAGS $ORIG_CPPFLAGS $ORIG_LDFLAGS" >> mk/build.mk + + # Avoid "Can't use -fPIC or -dynamic on this platform": + echo "DYNAMIC_GHC_PROGRAMS = NO" >> mk/build.mk + echo "GhcLibWays = v" >> mk/build.m }