darcs patch: Fix build with external gmp library.
gwright at antiope.com
gwright at antiope.com
Mon Aug 13 08:53:56 EDT 2007
Mon Aug 13 08:42:11 EDT 2007 gwright at antiope.com
* Fix build with external gmp library.
ghc fails to build if you use an external gmp library. This is because
ghc requires the header file gmp.h, which used to be provided by the
internal gmp source code. The file gmp.h is no longer part of the
gmp source code, but is generated as part of the build procedure.
If an external gmp is specified, the internal gmp is not built and the
gmp.h file never generated.
Of course, it was a bad idea anyway to use a header file from a potentially
different version of the library.
The patch sets HAVE_LIB_GMP if the gmp library is found during configuration
and conditionalizes including the library header file on it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 539039 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/cvs-ghc/attachments/20070813/a840df33/attachment-0001.bin
More information about the Cvs-ghc
mailing list