ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Led <ledest@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] --as-needed & gcc -
Date: Tue, 3 Mar 2009 02:53:56 +0200
Message-ID: <200903030253.56875.ledest@gmail.com> (raw)
In-Reply-To: <20090303004912.GJ25690@wo.int.altlinux.org>

On Tuesday, 03 March 2009 02:49:12 Dmitry V. Levin wrote:
> On Tue, Mar 03, 2009 at 02:30:56AM +0200, Led wrote:
> > Когда gcc отдаются исходники через stdin, умолчательный --as-needed
> > напрочь игнорирует все библиотеки. Например:
> >
> > $ echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }'
> > | gcc -include zlib.h -x c -o /tmp/a.out -lz -
> >
> > /tmp/.private/led/ccw45haA.o: In function `main':
> > :(.text+0x1a): undefined reference to `gzdopen'
> >
> > collect2: ld returned 1 exit status
> >
> > Это бага, или "неприятная фича"?
>
> Это частный случай, надо указать имя файла (в данном случае "-") до имени
> библиотеки (в данном случае "-lz").

"Посыпаю голову пеплом"... Чё-то не подумал, что так можно:)
Спасибо.

-- 
Led

      reply	other threads:[~2009-03-03  0:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03  0:30 Led
2009-03-03  0:49 ` Dmitry V. Levin
2009-03-03  0:53   ` Led [this message]

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=200903030253.56875.ledest@gmail.com \
    --to=ledest@gmail.com \
    --cc=devel@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 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