This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross-compilation and Shared Libraries


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian Dessent wrote:
> Ranjit Mathew wrote:
> 
>>   I just noticed that even with "--disable-static --enable-static",
> 
> Do you mean --disable-static --enable-shared?

Yes, sorry for the silly typo.


>> a Linux-to-MinGW cross compiler (mainline) still created static
>> libraries for the C++ and Java runtimes. Is this by design or is it
>> a bug? From the point of view of creating executables for embedded
> 
> As far as I know, shared libstdc++ for mingw/cygwin has never worked,
> you always get static no matter what you do, regardless of
> --enable-shared or native/cross.  I don't know if this is because of the
> archaic version of libtool that's in the tree, or some other reason.  It
> sure would be nice to get a shared libstdc++ one of these days without
> having to resort to hacks like manually linking together all the .o
> files in the build tree.

I had forgotten about libtool's limitations w.r.t. shared
libaries for Windows that TJ Laurenzo had already hit while
trying to create a shared libgcj for Windows:

  http://gcc.gnu.org/ml/java/2005-09/msg00009.html

Thanks,
Ranjit.

- --
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://rmathew.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEj6UJYb1hx2wRS48RAoXyAJ4uTzoPrm+1Ov0h/JHBnPBi3QFezQCfRjxo
utyPNuPlYio/vkAn6XvVDNU=
=o8Xf
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]