From: Duncan C. <dun...@wo...> - 2007-07-04 15:34:20
|
Tue Jul 3 13:18:11 PDT 2007 Duncan Coutts <du...@ha...> * sed hackery to generate extra-ghci-libraries in package files on win32 The .lib names and .dll names on windows do not match up, so we have to specify different libraries for ghci than for ghc. eg for gtk-2.0.lib the corresponding dll is libgtk-2.0-0.dll. We do this conversion using a sed rule plus a short list of hard-coded exceptions. hunk ./Makefile.am 1858 +# +# Annother annoying thing is that the .lib names and .dll names on windows do +# not match up, so we have to specify different libraries for ghci than for +# ghc. Eg while it's gtk-2.0.lib it's libgtk-2.0-0.dll. +# We generate the "extra-ghci-libraries:" field from the "extra-libraries:" +# field using a bit of cunning sed hackery. hunk ./Makefile.am 1868 + -e '/^extra-libraries:/ \ + p; \ + s/extra-libraries/extra-ghci-libraries/; \ + s/"\([a-z0-9.-]*\.0\)"/"lib\1-0"/g; \ + s/"cairo"/"libcairo-2"/; \ + s/"rsvg-2"/"librsvg-2-2"/; \ + s/"xml2"/"libxml2"/' \ |