freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Thomas Stover <thomas AT wsinnovations.com>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] mingw cross compilation
- Date: Fri, 09 Jan 2009 13:55:22 -0600
Date: Fri, 9 Jan 2009 12:05:44 +0100
From: "Frediano Ziglio" <freddy77 AT gmail.com>
Subject: Re: [freetds] mingw cross compilation
To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
2009/1/8 Thomas Stover <thomas AT wsinnovations.com>:
Anyone ever figure out how to target win32 from a linux host via mingw?
I found a few comments in the archives, but it seems I missed allot or
something. Better yet, how about targeting win64?
Either win32 and win64 compile and works (tested win32). Just use
--host options during configure.
freddy77
Awesome! I'm still looking for that magic touch though. Autoconf is always a nebulous area of pain for me...
$CC=/opt/crosscompilers/win32/bin/i686-mingw32-gcc ./configure --host win32
...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `win32': machine `win32' not recognized
configure: error: /bin/bash ./config.sub win32 failed
$CC=/opt/crosscompilers/win32/bin/i686-mingw32-gcc ./configure --host i686-mingw32
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
...
configure: error: No 16-bit int found.
$CC=/opt/crosscompilers/win32/bin/i686-mingw32-gcc ./configure --build i686-mingw32
...
configure: error: No 16-bit int found.
Win64 is looking much smoother however...
$make clean
$CC=/opt/crosscompilers/win64/bin/x86_64-pc-mingw32-gcc ./configure --host=x86_64-pc-mingw32 --prefix=/opt/crosscompilers/win64/x86_64-pc-mingw32/ --disable-server --enable-msdblib --includedir=/opt/crosscompilers/win64/x86_64-pc-mingw32/include/freetds
$make
...
no -i ../../win32/setup.rc --input-format=rc -o ../../win32/setup.res -O coff
/bin/bash: no: command not found
Any insights? I've been looking for some program called 'no', but that's a hard word to search for :)
-
[freetds] mingw cross compilation,
Thomas Stover, 01/08/2009
- Re: [freetds] mingw cross compilation, Frediano Ziglio, 01/09/2009
- <Possible follow-up(s)>
-
Re: [freetds] mingw cross compilation,
Thomas Stover, 01/09/2009
- Re: [freetds] mingw cross compilation, Frediano Ziglio, 01/11/2009
Archive powered by MHonArc 2.6.24.