
Hi Paul, On Tue, Sep 23, 2008 at 09:09:03PM -0400, Paul Jarc wrote:
I ran into some problems due to having gmp installed in an unusual place. I passed --with-gmp-{includes,libraries} to ./configure, set $CPPFLAGS and $LDFLAGS for ./configure, and set the corresponding -optl, etc., flags in SRC_HC_OPTS and GHC_CC_OPTS in mk/build.mk.
With all that, the first problem I hit was with utils/pwd/pwd. ./configure builds it by calling ghc without any special flags, so the binary can't find libgmp.so at runtime.
I'm confused. If the bootstrapping GHC uses a gmp from a non-standard directory, then that directory should be listed in the "library-dirs" field of the rts package. You shouldn't need to tell GHC where it is whenever you run GHC. Thanks Ian