darcs-2 executable for PowerPC Macintosh

Christian Maeder Christian.Maeder at dfki.de
Fri May 30 05:40:59 EDT 2008

I was able to statically link in libgmp.a by changing my installation:

1. I've copied libgmp.a into <prefix>/lib/ghc-6.8.2
2. I've changed <prefix>/lib/ghc-6.8.2/package.conf manually:

   ], frameworkDirs = [], frameworks = ["GMP"],
   ,"-lgmp"], frameworkDirs = [], frameworks = [],

so that "-lgmp" is in ldOptions and frameworks are empty

3. called ghc with the additional flags:
       -optl-Xlinker -optl-search_paths_first

HTH Christian

zooko wrote:
> Here is a darcs-2 executable for PowerPC Mac.  It was built on Mac OS  
> 10.4, and this tarball includes the "GMP.framework", which  
> (unfortunately) you have to copy into /Library/Frameworks or ~/ 
> Library/Frameworks before darcs will run.
> If any Haskell experts can tell me how to statically link or remove  
> this dependency on this GMP.framework I would like to know, and then  
> I can build a darcs binary which doesn't require such a step during  
> installation.
> https://zooko.com/darcs-2-mac-powerpc.tar.bz2
> Regards,
> Zooko

More information about the Glasgow-haskell-users mailing list