From: Mikhail Gusarov <dottedmag@dottedmag.net> To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] --as-needed && pkg-config/Libs.private Date: Fri, 09 Feb 2007 14:07:18 +0600 Message-ID: <87mz3nu53d.fsf@frontier.dottedmag.net> (raw) In-Reply-To: <679044850702082250s54efc115w4f9ecc0e6accd729@mail.gmail.com> (Damir Shayhutdinov's message of "Fri\, 9 Feb 2007 09\:50\:35 +0300") Twas brillig at 09:50:35 when Damir Shayhutdinov did gyre and gimble: DS> Очень просто. Недолинкованную библиотеку невозможно прилинковать DS> куда-либо, пока не отключишь --as-needed. То есть использование --ass-needed вскрывает баги, скрытые её неприменением. Тогда, как мне кажется, обращение к upstream вместо идеи "давайте --ass-needed добавим, и тут ещё вот это и вот это прилинковать, чтобы работало", на которую upstream спокойно ответит "Debian considers it as a hack" или чем-нибудь подобным, может быть таков: "мы тут собрали с --ass-needed вашу либу, и она не линкует вот это и вот это. Хорошей практикой является линковать всё [[тут <ссылка на хорошую практику>, у Дреппера, кажется, было]], и это заодно позволит собирать вашу библиотеку статически, если потребуется. Вот патчи для долинковки всего, а вот (сугубо на ваш вкус) патч на сборку с --ass-needed, чтобы вы всегда могли проверить, правильно ли слинкована ваша библиотека". С упором не на --ass-needed (это, в конце-концов, лишь деталь), а на правила сборки shared libraries. >> Тут ничего про новые библиотеки говорится. Только про откусывание >> ненужных. DS> Реальность оказалась страшнее чем документация :) Да и то, и другое не так уж и страшны, на поверку. --
next prev parent reply other threads:[~2007-02-09 8:07 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-02-07 10:56 Mikhail Gusarov 2007-02-09 6:09 ` Alexey Rusakov 2007-02-09 6:31 ` Damir Shayhutdinov 2007-02-09 6:43 ` Mikhail Gusarov 2007-02-09 6:50 ` Damir Shayhutdinov 2007-02-09 8:07 ` Mikhail Gusarov [this message] 2007-02-09 9:23 ` Damir Shayhutdinov 2007-02-09 17:55 ` Dmitry V. Levin 2007-02-09 18:42 ` Damir Shayhutdinov 2007-02-12 16:33 ` Mikhail Gusarov 2007-02-09 6:45 ` Mikhail Gusarov 2007-02-09 6:58 ` Damir Shayhutdinov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87mz3nu53d.fsf@frontier.dottedmag.net \ --to=dottedmag@dottedmag.net \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git