Change how we detect what library ways are available
authorIan Lynagh <ian@well-typed.com>
Sun, 12 May 2013 14:15:04 +0000 (15:15 +0100)
committerIan Lynagh <ian@well-typed.com>
Sun, 12 May 2013 14:15:04 +0000 (15:15 +0100)
commit962fd59eb0118df0d3b3b4e7c2504b639a25ae15
treeb2a8948257976fca5c5618c2c2f7c01e765d4279
parentebd5165970232def6611608a4a958efe595c40fb
Change how we detect what library ways are available

We used to use the base package to do the detection. However, base has
    extra-lib-dirs: @ICONV_LIB_DIRS@
in base.buildinfo.in, which means that if ICONV_LIB_DIRS is set then
the package config will have
    library-dirs: [...]base/dist-install/build /path/for/iconv
and, as paths may be double quoted and contains spaces, this makes it
a little tricky to extra the path that we want to look in (the first
path).

We therefore now use the ghc-prim package, which has no such complication.
testsuite/mk/test.mk