Hola Ernesto.
Excerpts from Ernesto Hernández-Novich's message of Ter Jun 01 09:46:22 -0300 2010:
> So, I need to be able to pass --flags=dynamic to cabal configure in
> order for the package to link against the system's libglfw. What's the
> incantation in debian/rules for that to happen?
You can see it by searching for configure in hlibrary.mk:
$ grep -A5 configure /usr/share/cdbs/1/class/hlibrary.mk
$(DEB_SETUP_BIN_NAME) configure --ghc -v2 \
--prefix=/usr --libdir=/usr/lib/haskell-packages/ghc6/lib \
--builddir=dist-ghc6 \
--haddockdir=$(DEB_HADDOCK_DIR) \
--htmldir=$(DEB_HADDOCK_HTML_DIR) $(ENABLE_PROFILING) \
$(DEB_SETUP_GHC6_CONFIGURE_ARGS) $(OPTIMIZATION)
--
$(DEB_SETUP_BIN_NAME) configure --hugs --prefix=/usr -v2 --builddir=dist-hugs $(DEB_SETUP_HUGS_CONFIGURE_ARGS)
build/libhugs-$(CABAL_PACKAGE):: dist-hugs
$(DEB_SETUP_BIN_NAME) build --builddir=dist-hugs
debian/tmp-inst-ghc6: $(DEB_SETUP_BIN_NAME) dist-ghc6
In this case, is just doing:
DEB_SETUP_GHC6_CONFIGURE_ARGS += --flags=dynamic
Saludos.
(...)
--
marcot
http://wiki.debian.org/MarcoSilva
Attachment:
signature.asc
Description: PGP signature