ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] --as-needed & gcc -
@ 2009-03-03  0:30 Led
  2009-03-03  0:49 ` Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Led @ 2009-03-03  0:30 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Когда 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

Это бага, или "неприятная фича"?

-- 
Led

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-03  0:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-03  0:30 [devel] --as-needed & gcc - Led
2009-03-03  0:49 ` Dmitry V. Levin
2009-03-03  0:53   ` Led

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