Commit 762a28c6 authored by Hrvoje Ribicic's avatar Hrvoje Ribicic
Browse files

Add configure option to pass GHC flags

Adding the HEXTRA option to make might not be practical for a change
that should be always applied, e.g., hiding a certain package. This
patch allows the flags to be specified at the configure level.
Signed-off-by: default avatarHrvoje Ribicic <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 9f60216e
......@@ -538,6 +538,8 @@ HFLAGS = \
# internal extra flags (used for test/hs/htest mainly)
# combination of HEXTRA and HEXTRA_CONFIGURE
# exclude options for coverage reports
HPCEXCL = --exclude Main \
--exclude Ganeti.Constants \
......@@ -881,7 +883,7 @@ $(HS_ALL_PROGS): %: %.hs $(HS_LIBTESTBUILT_SRCS) Makefile
-osuf $(notdir $@).o -hisuf $(notdir $@).hi \
@touch "$@"
# for the test/hs/htest binary, we need to enable profiling/coverage
......@@ -24,6 +24,15 @@ AC_SUBST([VERSION_REVISION], gnt_version_revision)
AC_SUBST([VERSION_SUFFIX], gnt_version_suffix)
AC_SUBST([VERSION_FULL], gnt_version_full)
# --with-haskell-flags=
[Extra flags to pass to GHC]
AC_SUBST(HEXTRA_CONFIGURE, $hextra_configure)
# --with-ssh-initscript=...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment