> Message: 3
> Date: Sun, 02 Oct 2011 19:43:09 +0200
> From: Erik van Pienbroek <erik(a)vanpienbroek.nl>
> Subject: Re: configuration for compiling libraries
> To: "Fedora MinGW (Windows cross-compiler) project"
> <mingw(a)lists.fedoraproject.org>
> Message-ID: <1317577389.29302.21.camel(a)alguno.terneuzen.openftd.org>
> Content-Type: text/plain; charset="UTF-8"
>
> Simson Garfinkel schreef op zo 02-10-2011 om 12:56 [-0400]:
>> All,
>>
>> This is the line that I'm currently using for configuring an auto-tools generated configure script for libraries with mingw64:
>>
>>> $ ./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw/
>>
>> This seems to work with most libraries but not all. My questions:
>>
>> 1 - Why is the --prefix needed? Shouldn't the configure scripts automatically figure out where the include and libraries go?
>>
>> 2 - Is this correct?
>
> Hi,
>
> The --prefix shouldn't be needed. The correct path for the mingw{32,64}
> sysroot should already be built into {i686,x86_64}-w64-mingw32-gcc so
> gcc will always know where to search for headers and libraries.
>
> When using the --prefix argument you are telling the build system that
> you want to install the binaries belonging to that project in a
> non-default directory (the default is /usr/local).
Hi, Erik,
I think that it's incorrect for the default to be /usr/local for a cross-compiler. /usr/local is for stuff that's running on the local machine, not on the target machine.
>
> If you wish to install the project you're trying to build in the system
> wide mingw sysroot you can use
> --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw/ although for those
> situations we recommend to use the mingw32-configure and
> mingw64-configure helper scripts. If you wish to install the project in
> your homedir, you could use something like --prefix=/home/simson/mingw.
> The value given here shouldn't affect the build itself, so no build
> failures are expected when you use a custom --prefix.
Thanks. Can you tell me how to use the mingw32-configure and mingw64-configure helper scripts?