From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 22 Sep 2007 15:59:32 +0400 From: "Dmitry V. Levin" To: ALT Linux Team development discussions Message-ID: <20070922115932.GB27738@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Team development discussions References: <20070922100716.GA8416@lks.home> <20070922102948.GA31033@hell.fortress> <20070922112156.GA5092@lks.home> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JYK4vJDZwFMowpUq" Content-Disposition: inline In-Reply-To: <20070922112156.GA5092@lks.home> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E 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 11:59:32 -0000 Archived-At: List-Archive: List-Post: --JYK4vJDZwFMowpUq Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 22, 2007 at 03:21:56PM +0400, Konstantin A. Lepikhov wrote: > Saturday 22, at 02:29:48 PM you wrote: > > * 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 > >=20 > > > 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. > >=20 > > info ld: > >=20 > > `--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. > >=20 > > =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. > =D0=D2=C9=C4=C5=D4=D3=D1 =D7=C5=DB=C1=D4=D8 =C2=C1=C7=D5 =CE=C1 =D3=C2=CF= =D2=CF=DE=CE=D9=C5 =D3=CB=D2=C9=D0=D4=D9 =C9=DA openwrt :( =F3=CB=C1=D6=C9 =C9=CD =DE=D4=CF =D5 =D4=C5=C2=D1 libz.a ;) --=20 ldv --JYK4vJDZwFMowpUq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFG9QOjfKvmrJ41Nh4RAjfGAJ9k0TlrSVPxf8PUrk1rRerzHlPRJACeMYYv axBPbSe9CevfkMKD3VfgNZ4= =5Q43 -----END PGP SIGNATURE----- --JYK4vJDZwFMowpUq--