Re: how could make gcc link static library default?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux