Почему моя статическая сборка требует совместно использованных библиотек?

Таким образом, после некоторого исследования, вот то, что я нашел - решение приемлемый крупными поисковыми поставщиками: Google , yahoo & MSN (я мог на находке блок проверки допустимости здесь):

User-Agent: *
Disallow: /*
Allow: /?okparam=
Allow: /$

прием использует $ для маркировки конца URL.

5
задан Crazy Chenz 7 July 2009 в 13:48
поделиться

1 ответ

It doesn't require shared libs per se, it just warns you that some things might not work properly if you link statically to glibc.

Some of those things are the nsswitch, see e.g. /etc/nsswitch.conf .On a system different ways of looking up users/groups/hostnames and other things can be configured and altered via plugins - e.g. samba comes with a module for managing users configured on a windows domain/active directory transparently.

Your app will not honor /etc/nsswitch.conf customization if you link statically to glibc, functions such as gethostbyname,getpwuid and others will just use the default ways of looking up things.

Same goes for e.g. other libraries your app might use that for whatever reason dlopen()s itself to hook into glibc or similar.

See also

Statically linking considered harmful

5
ответ дан 14 December 2019 в 19:22
поделиться
Другие вопросы по тегам:

Похожие вопросы: