2012/11/9 Earnie Boyd <[email protected]>

> On Thu, Nov 8, 2012 at 5:05 PM, JonY wrote:
> >
> > There isn't an include directory specifically for win32 and another for
> > win64. Installing to the same area will clash as OP predicted.
> >
>
> There is only one set of mingw-w64 distributed headers and those
> headers contain both Win32 and Win64 filtered by _WIN64 if the 64bit
> compiler is being used.  I filtered my statements with "mingw-w64
> distributed", therefore there is no clash.
>
> If the OP intends to use various compiler distributions then yes,
> segregation is needed; but I didn't get that from the original post.
>

Let's reiterate: the OP wanted to install his 3rd party headers and libs to
a standard search location. You suggested the toolchain's sysroot, which is
fine, as long as you only have one architecture to worry about. For both
x86 and x64 in the same (multilib) toolchain's sysroot, headers and, if not
carefully handled, libraries will clash. For an example where headers
always clash in this setup, see GMP, for which the generated header gmp.h
is different for x86 vs x64, heck even shared vs static.

Your suggestion quite frankly sucks. JonY is correct in saying that the
only semi-decent way of dealing with this is passing the library locations
to a build system.

That, or use two toolchains (one per architecture), and install every
header/lib into <prefix>\<target>, which is the fail-safe way to go. This
is what is done for all Arch AUR MinGW-w64 packages (I'm surprised about
the sheer amount of libraries present in the AUR for mingw-w64 btw since I
put a cross-compiler in there).

Cheers,

Ruben

>
> --
> Earnie
> -- https://sites.google.com/site/earnieboyd
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to