Fix the Windows build files
Patches comming from KDE project for Windows portability
https://projects.kde.org/projects/kdesupport/emerge/repository/revisions/master/entry/portage/testing/libxml2-test/libxml2-2.7.8-20110801.diff
To build libxml2 I had to patch the build system a little bit.
The windows build system tries to link about zdll, but on windows
its called zlib* too, so linking against z is enough.
Also the --include and the --lib command was ignored.
For the http and ftp stuff linking against some windows library's was
forgotten for mingw.
diff --git a/win32/configure.js b/win32/configure.js
index 342fd9d..a815cbb 100644
--- a/win32/configure.js
+++ b/win32/configure.js
@@ -269,8 +269,8 @@
vf.WriteLine("CRUNTIME=" + cruntime);
vf.WriteLine("VCMANIFEST=" + (vcmanifest? "1" : "0"));
} else if (compiler == "mingw") {
- vf.WriteLine("INCLUDE+=;" + buildInclude);
- vf.WriteLine("LIB+=;" + buildLib);
+ vf.WriteLine("INCLUDE+= -I" + buildInclude);
+ vf.WriteLine("LIB+= -L" + buildLib);
} else if (compiler == "bcb") {
vf.WriteLine("INCLUDE=" + buildInclude);
vf.WriteLine("LIB=" + buildLib);
@@ -579,7 +579,7 @@
if (buildLibPrefix == "")
buildLibPrefix = "$(PREFIX)" + dirSep + "lib";
if (buildSoPrefix == "")
- buildSoPrefix = "$(PREFIX)" + dirSep + "lib";
+ buildSoPrefix = "$(PREFIX)" + dirSep + "bin";
// Discover the version.
discoverVersion();