+# Override haddock generation for this package
+HADDOCK_DOCS=NO
+
+# We package libffi as Haskell package for two reasons:
+
+# 1) GHC uses different names for shared and static libs, so it can
+# choose the lib variant to link with on its own. With regular
+# libtool styled shared lib names, the linker would interfer and
+# link against the shared lib variant even when GHC runs in -static
+# mode.
+# 2) The first issue isn't a problem when a shared lib of libffi would
+# be installed in system locations, but we do not assume that. So,
+# when running in -dynamic mode, we must either install libffi to
+# system locations ourselves, or we must add its location to
+# respective environment variable, (DY)LD_LIBRARY_PATH etc...before
+# we call dynamically linked binaries. Especially, the latter is
+# necessary as GHC calls binary it produced before its installation
+# phase. However, both mechanism, installing to system locations or
+# modifying (DY)LD_LIBRARY_PATH, are already in place for Haskell
+# packages so with packaging libffi as Haskell package we reuse
+# them naturally.
+
+PACKAGE=ffi