Re: libtool problem with --whole-archive/--no-whole-archive

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <20150216090826.GH4075@vapier>
On 26 Nov 2014 11:20, Venkatesh Vivekanandan wrote:
> Problem is, platform linker command doesn't have
> --whole-archive/--no-whole-archive around the lib. Instead it comes later
> in the command line.

iirc, libtool likes to sort things for you

> How to propogate the --whole-archive/--no-whole-archive all the way down to
> example app linking?. Importantly, it should be around the -lmyextlib. I
> can make changes only at platform/targetA/Makefile.am as example/* is
> common across all other platforms.
> 
> Note: Tried libtool's suggestion of -Wl,'-whole-archive -lfoo
> -no-whole-archive' as mentioned in
> lists.gnu.org/archive/html/libtool/2002-05/msg00043.html but that didn't
> work.

what do you mean by "didn't work" ?

maybe quoting is messing you up ?  you could try:
 -Wl,--whole-archive,-lfoo,--no-whole-archive
-mike

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJU4bOKAAoJEEFjO5/oN/WBJZIP/3/1tk/6hgE+a0++GkLXG/3i
Dwz1SQcyU6Oy/ih99kW7G1kAJzeV3c//6yHY2e7CN3vPsT/mJbg68dVcw5P2LCvq
r36apEJQahY3X01FDddfRWcFXc9EcXiiQ7xG/ySkfFE6ecXw2iD5tcLMA+/9+vZC
kzu7q2s3qBvDEQoKElRRypaoAVXeP4zP6wSeqcgu425arF6GMTWUEzNNTV5W3bbP
JVXAfJIxkgO6iKUgEaeuUqg4KbCUFHObJSG4V/IbKID00svgpzeA75RIZQbZeEFy
D7Z0HRbEXHSBy5Tv/T1WvO0UV7p5kYX3MTfKcN4fwrNTfnktyG6YqRnkVjr1wXes
PjnJMRskccCKdfpiu37X+NaiO/v2omPqBXmbpMGjz0TAABimJrFGAwVgwETZ/V62
1XOW2Yto2kgk+8eb/OB5FHr0NqJxmb/7w0uhePea79ufg8jHXCxwlzYLM2Pq4Nzu
uYZIObGjEkxJAN0RnrLeAbpcyQnZm3ERS6B9iIRUEwpP0FqmZP+z6rdDdl7vOF+Q
lHYMw0bQb6HyaQNscEQDRSwtaPQlqSxMNxJnFtis0wCLJhJeHJZLO4BEy6y/QWyj
pGFAt+Ur9G/5ldHvs9+fsdCYDZ1Ucw6HYNlVUaX7Zt0rWOVp6nVtVTBrQpHDhutE
0aIAfGmEWWkFqAOTl/Oj
=G2Ef
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.