|
From: Keith M. <kei...@to...> - 2006-01-20 13:49:40
|
Fl...@t-... wrote: > As you asked, if I need the "libfl.a" compiled for the target host > - yes I think so too. This is exactly the reason, why I want to > compile the flex-sources to a target not equal linux. My goal is > to get a "libfl.a" which can be included in my mingw32-call. > > Any further tips ? Thank you in advance, You need to configure with `--build=i686-pc-linux-gnu' and with `--host=i586-mingw32msvc'. As I've already explained, with additional clarification from Ralf W, --target is really only applicable when there is a third architecture involved, e.g. you are building a cross-compiler to run on, say $host = FreeBSD, where *it* will create executables to run on (say) $target = Win32, but you are starting out on (say) $build = Linux, to build the FreeBSD-to-Win32 cross-compiler. Compile your flex sources, for $host = i586-mingw32msvc, to create a Win32 compatible libfl.a, then either use a -L switch to tell your i586-mingw32msvc-gcc where to find it, or drop it into the same directory as your i586-mingw32msvc libraries, to have it picked up automatically. HTH, Keith. |