pkgs/build-support/cabal: strip unnecessary --extra-lib-dir arguments for haskell packages

Packages that are registered in the ghc-pkg database don't need any
extra flags passed for Cabal to recognize them.
This commit is contained in:
Peter Simons 2013-03-28 12:58:10 +01:00
parent 0823aea0a6
commit 0e1dfe702d

View file

@ -115,7 +115,9 @@
fi
for d in lib{,64}; do
if [ -d "$p/$d" ]; then
extraConfigureFlags+=" --extra-lib-dir=$p/$d"
if [ ! -d "$p/$d/ghc-pkgs" ]; then
extraConfigureFlags+=" --extra-lib-dir=$p/$d"
fi
fi
done
done