
17 Jul
2006
17 Jul
'06
8:05 p.m.
On 7/17/06, Bulat Ziganshin
As you noted, I can't apply this directly as-is because of not being cross-platform happy. That is easily enough fixed for the #includes. However, for the .cabal file, it's not so easy. Is it really not possible to link in odbc -- it has to be odbc32 on Windows?
is not it possible to use the same trick as i used to include Win32 package only in windows builds of Streams library. here is the Setup.hs that does this trick:
That should work as well, but writing out a .buildinfo-file would be better, I think. I have used that, little diffrently: http://tamelambda.net/darcs/dx9/Setup.hs (I write buildinfo based on configure params) HTH, --Esa