This is the mail archive of the gcc-help@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: how could make gcc link static library default?


On 10/17/2013 10:11 AM, net_robber wrote:
> how to get that information

Please don't top-post on the GCC lists.

I don't understand your question.  What does "how to get that information"
mean?  It's in the file /usr/lib/libc.so.

> On Thu, Oct 17, 2013 at 5:04 PM, Andrew Haley <aph@redhat.com> wrote:
>> On 10/17/2013 07:57 AM, net_robber wrote:
>>> how to make it the first priority give to static, and then, in case
>>> static does not exist it uses dynamic.
>>
>> Have a look at /usr/lib/libc.so on a GNU/Linux system of your choice.
>>
>> Here it is on mine:
>>
>> /* GNU ld script
>>    Use the shared library, but some functions are only in
>>    the static library, so try that secondarily.  */
>> OUTPUT_FORMAT(elf32-i386)
>> GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.2 ) )
>>
>> Andrew.
>>


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