From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 30 Apr 2006 00:39:02 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20060429203902.GB9314@localhost> Mail-Followup-To: ALT Devel discussion list References: <20060428073448.GB8817@lks.home> <1146256743.5428.10.camel@localhost.localdomain> <1146257421.5428.12.camel@localhost.localdomain> <20060428210319.GA6045@hell.immo.ru> <20060429144749.GD13673@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SkvwRMAIpAhPCcCJ" Content-Disposition: inline In-Reply-To: <20060429144749.GD13673@basalt.office.altlinux.org> Subject: Re: [devel] Q: pkgconfig build-deps X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 20:38:35 -0000 Archived-At: List-Archive: List-Post: --SkvwRMAIpAhPCcCJ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 29, 2006 at 06:47:49PM +0400, Dmitry V. Levin wrote: > =E2=C5=C4=C1 =D7 =D4=CF=CD, =DE=D4=CF =DC=D4=C9 Libs =DA=C1=DE=C1=D3=D4= =D5=C0 =C9=DA=C2=D9=D4=CF=DE=CE=D9. =F1, =CB=C1=D6=C5=D4=D3=D1, =D3=C5=CA= =DE=C1=D3 =CE=C1=DE=CE=D5 > =D0=CF=D7=D4=CF=D2=D1=D4=D8 =DE=D4=CF-=D4=CF =D0=D2=CF --as-needed. =EB=D3=D4=C1=D4=C9, =CE=C5=D3=CB=CF=CC=D8=CB=CF =CD=C5=D3=D1=C3 =CE=C1=DA= =C1=C4 =D1 =D0=D2=CF=D7=A3=CC =C9=D3=D3=CC=C5=C4=CF=D7=C1=CE=C9=C5 =D0=D2= =CF=C2=CC=C5=CD=D9 =C9=DA=CC=C9=DB=CE=C5=CA =CC=C9=CE=CB=CF=D7=D3=CB=C9 =D7 =F3=C9=DA=C9=C6=C5. =F3=CF=C7=CC=C1=D3=CE= =CF =D0=D2=CF=D7=C5=C4=C5=CE=CE=CF=CD=D5 =CD=CE=CF=CA =C9=D3=D3=CC=C5=C4=CF= =D7=C1=CE=C9=C0... :) =CB=C1=D6=C4=D9=CA =C2=C9=CE=C1=D2=D8 =D7 =D3=D2=C5=C4=CE=C5=CD =CC=C9=CE= =CB=D5=C5=D4=D3=D1 =D3 =CB=CF=CC=C9=DE=C5=D3=D4=D7=CF=CD =C2=C9=C2=CC=C9=CF= =D4=C5=CB =D0=CF=DE=D4=C9 =D7=C4=CF=D7=C5 =C2=CF=CC=D8=DB=C5=CD, =DE=C5=CD =D2=C5=C1=CC=D8=CE=CF =C9=D3=D0=CF=CC=D8= =DA=D5=C5=D4. (=E8=CD. "=EC=C9=CE=CB=D5=C5=D4=D3=D1 =D3 =CB=CF=CC=C9=DE=C5=D3=D4=D7=CF= =CD"... =F4=D2=D5=C4=CE=CF=D3=D4=C9 =D1=DA=D9=CB=C1.) =F0=CF=D3=CB=CF=CC=D8=CB=D5 --as-needed =D0=CF=DE=D4=C9 =D0=CF=CC=CE=CF=D3= =D4=D8=C0 =D2=C5=DB=C1=C5=D4 =D0=D2=CF=C2=CC=C5=CD=D5, =C4=CF=CC=C7=CF =D0= =C9=D3=C1=D4=D8 =CF=C2 =DC=D4=CF=CD =CE=C5 =C2=D5=C4=D5. =F7=CF=D4 =D7=D9=C4=C5=D2=D6=CB=C1 =C9= =DA =C9=D3=D3=CC=C5=C4=CF=D7=C1=CE=C9=D1. =3Ditem unneed I.e. no undefined symbols is resolved into this shared library the binary i= s linked against. To put it another way, the library is linked in but possibly unused. Example: 7colors /usr/bin/sevencolors libICE.so.6 7colors /usr/bin/sevencolors libSM.so.6 7colors /usr/bin/sevencolors libX11.so.6 7colors /usr/bin/sevencolors libXext.so.6 7colors /usr/bin/sevencolors libXi.so.6 7colors /usr/bin/sevencolors libart_lgpl.so.2 7colors /usr/bin/sevencolors libaudiofile.so.0 7colors /usr/bin/sevencolors libdb.so.2 7colors /usr/bin/sevencolors libdl.so.2 7colors /usr/bin/sevencolors libesd.so.0 7colors /usr/bin/sevencolors libgmodule-1.2.so.0 7colors /usr/bin/sevencolors libm.so.6 To make it clear, the following libraries are actually used by 7colors (dir= ectly): libc.so.6 libgdk-1.2.so.0 libgdk_imlib.so.1 libglib-1.2.so.0 libgnome.so.32 libgnomesupport.so.0 libgnomeui.so.32 libgtk-1.2.so.0 Now some stats (i.e. "most unneded libraries"). $ cut -f3 unneed |sort |uniq -c |sort -n |tail 1037 libc.so.6 1207 libX11.so.6 1240 libSM.so.6 1244 libICE.so.6 1247 libgcc_s.so.1 1511 libXext.so.6 2066 libz.so.1 3164 libpthread.so.0 3177 libdl.so.2 5348 libm.so.6 $ You see libm.so.6 is plugged by g++ by default. --SkvwRMAIpAhPCcCJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEU87mfBKgtDjnu0YRAgC9AKCg/Mfke+9BP7D7YVDlFm5HgeyR4ACgw9q+ RDssYeNLx1e935PGGIlIOxI= =s/cu -----END PGP SIGNATURE----- --SkvwRMAIpAhPCcCJ--