Hi,

2012/11/12 Václav Šmilauer <[email protected]>:
> Hi there,
>
> I would like to ask what the best/recommended practice for installing
> shared libraries under Windows/mingw is. Qt4 for instance installs DLLs
> to both $PREFIX/bin and $PREFIX/lib. I prefer to install to $PREFIX/lib
> and add it to $PATH (in addition to $PREFIX/bin), but I wonder if there
> is a good reason to put libs under bin.
>
> Thanks, Vaclav

This is a small question with much more impact as you might expect.
Old style is to put Runtime-DLL files into bin/ directory.  This had
some advantages as long as you just have one target to support, but in
general isn't the best solution IMHO.
More modern gcc installs its runtime-DLL files for
cross-compiler-scenario into <target>/lib (<target>/lib64/32) along
the the import-library.  This has the advantage that even for multiple
targets each target has its private destination for runtime-DLLs.  So
they don't collide.  Of course by this solution you need to add this
directory to your PATH-environment.

I would prefer to install 32-bit and 64-bit DLL files into same
directories as their import-libraries are.  This is by the way
additionally the same behavior as on *nix-setups.

Regards,
Kai

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to