ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] --as-needed отменили?
@ 2008-04-06  9:12 Максим Иванов
  2008-04-07  6:15 ` [devel] readelf vs ldd Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Максим Иванов @ 2008-04-06  9:12 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Если я правильно понимаю --as-needed, то по ldd должно быть выдано только то, 
что непосрдественно требуется бинарнику (=то на что есть include).

Ставлю из бранча простенькую kdegames-konquest-3.5.9-alt0.M40., смотрю:
[maxim@ivanovpc ~]$ ldd /usr/games/konquest
        linux-gate.so.1 =>  (0xb7f54000)
        libkdegames.so.1 => /usr/lib/libkdegames.so.1 (0xb7ea9000)
        libkdeui.so.4 => /usr/lib/libkdeui.so.4 (0xb7c66000)
        libkdecore.so.4 => /usr/lib/libkdecore.so.4 (0xb7ad1000)
        libqt-mt.so.3 => /usr/lib/libqt-mt.so.3 (0xb74ff000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7418000)
        libm.so.6 => /lib/libm.so.6 (0xb73f2000)
        libc.so.6 => /lib/libc.so.6 (0xb72cc000)
        libkio.so.4 => /usr/lib/libkio.so.4 (0xb707c000)
        libkdnssd.so.1 => /usr/lib/libkdnssd.so.1 (0xb706a000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7054000)
        libDCOP.so.4 => /usr/lib/libDCOP.so.4 (0xb702b000)
        libkdefx.so.4 => /usr/lib/libkdefx.so.4 (0xb7009000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb6ffb000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb6f0d000)
        libutempter.so.0 => /usr/lib/libutempter.so.0 (0xb6f0b000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6f07000)
        libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xb6ef0000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0xb6ebf000)
        libz.so.1 => /lib/libz.so.1 (0xb6eab000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb6ea3000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb6e8c000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb6e84000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6e7b000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6e75000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6e6c000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6e69000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0xb6e57000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6ddc000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6db0000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6da5000)
        /lib/ld-linux.so.2 (0x80000000)
        libkdesu.so.4 => /usr/lib/libkdesu.so.4 (0xb6d97000)
        libkwalletclient.so.1 => /usr/lib/libkwalletclient.so.1 (0xb6d8a000)
        libacl.so.1 => /lib/libacl.so.1 (0xb6d84000)
        libattr.so.1 => /lib/libattr.so.1 (0xb6d7f000)
        libavahi-qt3.so.1 => /usr/lib/libavahi-qt3.so.1 (0xb6d7a000)
        libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0xb6d6f000)
        libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0xb6d60000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb6d5d000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6d57000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6d52000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6d32000)
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb6d00000)

Никогда не поверю, что такая простенькая игрушка напрямую дёргает иксы, да 
разные avahi.


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

* Re: [devel] readelf vs ldd
  2008-04-06  9:12 [devel] --as-needed отменили? Максим Иванов
@ 2008-04-07  6:15 ` Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2008-04-07  6:15 UTC (permalink / raw)
  To: ALT Linux Team development discussions

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

On Sun, Apr 06, 2008 at 01:12:10PM +0400, Максим Иванов wrote:
> Если я правильно понимаю --as-needed,

Если не уверены, то прочтите документацию
(info ld, искать --as-needed).

> то по ldd должно быть выдано только то, 
> что непосрдественно требуется бинарнику (=то на что есть include).

Если не уверены, то прочтите документацию
(man ldd).

> Ставлю из бранча простенькую kdegames-konquest-3.5.9-alt0.M40., смотрю:
> [maxim@ivanovpc ~]$ ldd /usr/games/konquest

$ readelf -d usr/games/konquest |fgrep '(NEEDED)'
 0x00000001 (NEEDED)                     Shared library: [libkdegames.so.1]
 0x00000001 (NEEDED)                     Shared library: [libkdeui.so.4]
 0x00000001 (NEEDED)                     Shared library: [libkdecore.so.4]
 0x00000001 (NEEDED)                     Shared library: [libqt-mt.so.3]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

(info readelf)


-- 
ldv

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

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

end of thread, other threads:[~2008-04-07  6:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-06  9:12 [devel] --as-needed отменили? Максим Иванов
2008-04-07  6:15 ` [devel] readelf vs ldd Dmitry V. Levin

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