On Wed, Mar 28, 2012 at 11:40:50PM +0200, Iustin Pop wrote:
> - TH not supported on arches A, B, C & how to detect at build time

DEB_SETUP_GHC_CONFIGURE_ARGS += $(shell test -e /usr/lib/ghc/bin/ghci || echo 
--flags=-th)

Also if your test suite relies on TH, you can do something like

DEB_ENABLE_TESTS = $(shell test -e /usr/lib/ghc/bin/ghci && echo yes)

> - threaded not supported on all arches, & how to detect at build time

DEB_SETUP_GHC_CONFIGURE_ARGS += $(shell test -e 
/usr/lib/ghc-$(GHC_VERSION)/libHSrts_thr.a || echo --flags=-threaded)


Note that the cabal flags are not standardized, and generally
not present upstream unless we have forwarded patches, as most
of the Hackage developers never face these problems themselves.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to