Building the MySQL and PostgreSQL libraries on Windows

MySQL does not support gcc on Windows, only MSVC. Moved to a separate page.

PostgreSQL

http://www.postgresql.org/ftp/source/v8.3.9/

$ LDFLAGS=-no-undefined ./configure --prefix=/opt/postgresql
$ make
$ make -C src/interfaces/libpq install
$ make -C src/bin/pg_config install
$ make -C src/include install

http://pqxx.org/development/libpqxx/wiki/DownloadPage

$ PG_CONFIG=/opt/postgresql/bin/pg_config.exe LDFLAGS=-no-undefined ./configure

--prefix=/opt/postgresql

$ make && make install