This is the mail archive of the
mailing list for the binutils project.
Re: dependency list for static libraries
Joseph Myers wrote:
You can install a linker script under a .a file name to achieve this
effect. On x86_64, glibc's libm.a now looks like:
/* GNU ld script
GROUP ( /usr/lib64/libm-2.26.90.a /usr/lib64/libmvec.a )
Thanks for the suggestion, but that still means introducing
additional/auxiliary files, so it has much the same drawback as libtool files.
I also find this particularly gross because it breaks the principle of least
surprise; when I see a *.a file I expect ar, nm, and ranlib to work on it. I'm
kind of shocked that such a solution ever flew.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/