Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: GNU libtool and C++ dylibs on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU libtool and C++ dylibs on Tiger



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

Trevor McCulloch wrote:
| I have a GNU automake/libtool based C++ project that worked on Panther
| with gcc 3.3, but now I get linker problems on Tiger with gcc 4. The
| project builds some static C++ libraries that it then links into a
| couple of larger dylibs. GNU libtool generates a linking command like
| this:
|
| g++ -dynamiclib  -single_module -flat_namespace -undefined suppress -o
| .libs/libFoo.0.dylib <some libFoo c++ objs> -all_load  libBar.a  -ldl
| -lpthread
|
| where libBar.a is a static C++ library. This then gives me the
| following linker errors:

edit the generated libtool script and make the variable
whole_archive_flag_spec=""

This is fixed in GNU libtool 1.5.8 and later.

Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQna6uriDAg3OZTLPAQIMVwP9FC942LI2tel6BWHjlJuTeUFCoOmTwWDx
b8OQxzFmOVxanIgm6WjXPX/Qmc7OzkQgIvltg8NVR7Mte3SECmtOSTckhHwWjnKk
NySbXi65W7GsHpJ7kR+Vat2EZN9YNUgMnirbkFjuMRg20mizBZi4O3mR4+xkbpec
HYnEADB+tco=
=p/+Y
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >GNU libtool and C++ dylibs on Tiger (From: Trevor McCulloch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.