From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 22 Sep 2007 14:29:48 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20070922102948.GA31033@hell.fortress> References: <20070922100716.GA8416@lks.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <20070922100716.GA8416@lks.home> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: [devel] Q: gcc/ld madness X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2007 10:29:49 -0000 Archived-At: List-Archive: List-Post: --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Konstantin A. Lepikhov [070922 14:13]: > echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \ > gcc -Wall -include zlib.h -x c -o a.out -lz - gcc -Wall -include zlib.h -x c -o a.out - -lz > PS =E5=D3=CC=C9 =D5=DB=C9 =D2=C1=D3=D4=D5=D4 =C9=DA as-needed, =D0=D2=CF= =D3=D8=C2=C1 =C4=C1=D4=D8 =C4=C5=D4=C1=CC=D8=CE=CF=C5 =C9 > =C4=CF=CB=D5=CD=C5=CE=D4=C9=D2=CF=D7=C1=CE=CE=CF=C5 =CF=C2=DF=D1=D3=CE=C5= =CE=C9=C5 =D0=CF=DE=C5=CD=D5 =DC=D4=C1 ass =CC=CF=CD=C1=C5=D4 =D4=C1=CB=C9= =C5 =D0=D2=CF=D3=D4=D9=C5 =D0=D2=C9=CD=C5=D2=D9. info ld: `--as-needed' `--no-as-needed' This option affects ELF DT_NEEDED tags for dynamic libraries mentioned on the command line after the `--as-needed' option. Normally, the linker will add a DT_NEEDED tag for each dynamic library mentioned on the command line, regardless of whether the library is actually needed. `--as-needed' causes DT_NEEDED tags to only be emitted for libraries that satisfy some symbol reference from regular objects which is undefined at the point that the library was linked. `--no-as-needed' restores the default behaviour. =F3=CF=C2=D3=CE=CF, =D7 =D0=C5=D2=D7=CF=CD =D3=CC=D5=DE=C1=C5 =D7 =CD=CF=CD= =C5=CE=D4 =CC=C9=CE=CB=CF=D7=CB=C9 libz =CE=C5=D4 =D3=D3=D9=CC=CF=CB =CE=C1 =D3=C9=CD=D7=CF=CC=D9 =CF=D4=D4=D5=C4=C1, =D7=CF =D7=D4=CF=D2=CF=CD =CF=CE= =C9 =D0=CF=D1=D7=CC=D1=C0=D4=D3=D1. =FC=D4=CF =D5=D6=C5 =CE=C5=CF=C4=CE=CF= =CB=D2=C1=D4=CE=CF =DA=C4=C5=D3=D8 =CF=C2=D3=D5=D6=C4=C1=CC=CF=D3=D8. --=20 Regards, Sir Raorn. --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFG9O6WVqT7+fkT8woRApBeAJ98Uj60bLgr02sK0OnQVMzriBhvCQCgpIln HtxSEfQC4wApfcmtt/SlLpc= =kHZx -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--