ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Q: lt_cv_cc_static_works=no
Date: Mon, 5 Jan 2004 03:01:09 +0300
Message-ID: <20040105000109.GA9585@basalt.office.altlinux.org> (raw)
In-Reply-To: <20040104234058.GA13653@hell.devel.altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1735 bytes --]

On Mon, Jan 05, 2004 at 02:40:58AM +0300, Alexey I. Froloff wrote:
> On Tue, Dec 23, 2003 at 02:31:55PM +0300, Alexey I. Froloff wrote:
> > > > Вот действительно, зачем это нужно?
> > > Это равносильно неустановке пакета glibc-devel-static.
> > > Нужно это для того, чтобы в системе, где glibc-devel-static установлен,
> > > buildreq не включал его в сборочные зависимости без необходимости.
> > Не думаю, что это правильно...  Компилятор _может_ создавать
> > статические бинари, но мы этого не хотим, для чего есть опция для
> > configure.  Может =yes делать?
> Гхм...  Мне бы очень хотелось услышать какой-нибудь ответ на этот
> вопрос.  Чем lt_cv_cc_static_works=no лучше чем
> lt_cv_cc_static_works=yes, учитывая способность нашего gcc
> создавать на нашей платформе статические бинарники, и учитывая
> наличие опции --disable-static?

Если пакет glibc-devel-static не установлен, то "gcc -static" работать не
будет.  Можно, конечно, обмануть тупо проверяющий всё libtool и прописать
lt_cv_cc_static_works=yes в %configure, но тогда придётся обязательно
указывать --disable-static.

Кажется, оно так сейчас и происходит, в форме
%configure %{subst_enable static}

Если пакет glibc-devel-static не установлен, lt_cv_cc_static_works=yes и
--disable-static не указан, то сборка обвалится в конце на стадии
статической линковки.

Боюсь, что lt_cv_cc_static_works=yes в %configure прописывать нельзя, ибо
есть риск, что неуказание glibc-devel-static в buildrequires сейчас
используется как реальная альтернатива --disable-static.  Это, конечно,
плохой тон, ибо характер такой сборки существенно зависит от сборочной
среды.  Можем ли мы пренебречь такими пакетами (if any) и определять
lt_cv_cc_static_works=yes в %configure?


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-05  0:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-23  6:49 Alexey I. Froloff
2003-12-23 11:17 ` Dmitry V. Levin
2003-12-23 11:31   ` Alexey I. Froloff
2004-01-04 23:40     ` Alexey I. Froloff
2004-01-05  0:01       ` Dmitry V. Levin [this message]
2004-01-05 21:23         ` [devel] " Mikhail Zabaluev

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=20040105000109.GA9585@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@altlinux.ru \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git