[freetds] mingw cross compilation (Frediano Ziglio)
Thomas Stover
thomas at wsinnovations.com
Sun Jan 11 18:02:16 EST 2009
Thomas Stover wrote:
> Date: Sun, 11 Jan 2009 14:06:51 +0100
>
> 5) For google search posterity sake, kids try something like:
>
> PATH=$PATH:/path/to/your/toolchain/bin ./configure
> --host=toolchain_prefix
> (where "toolchain_prefix" is the part of the filenames (not including
> the '-') like toolchain-prefix-gcc and toolchanin-prefix-g++)
> PATH=$PATH:/path/to/your/toolchain/bin make
>
> Also once back over in windows, set your FREETDS environment variable
> to the directory containing freetds.conf.
>
Oh I forgot. Although this maybe obvious to some, it took some head
scratching for me. You have to initialize winsock!! Also add the library
for winsock when building so "-lsysbdb -lws2_32".
More information about the FreeTDS
mailing list