From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 22 Sep 2007 15:21:56 +0400 From: "Konstantin A. Lepikhov" To: ALT Linux Team development discussions Message-ID: <20070922112156.GA5092@lks.home> Mail-Followup-To: ALT Linux Team development discussions References: <20070922100716.GA8416@lks.home> <20070922102948.GA31033@hell.fortress> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <20070922102948.GA31033@hell.fortress> X-Operation-System: ALT Linux Sisyphus (20070101) 2.6.18-ovz-smp-alt15 User-Agent: Mutt/1.5.14 (2007-02-12) 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:22:06 -0000 Archived-At: List-Archive: List-Post: --17pEHd4RhPHOinZp Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Alexey! 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 :( --=20 WBR et al. --17pEHd4RhPHOinZp 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) iD8DBQFG9PrUVtlNyKwhNDsRAlV8AJ9W/WEj4Q+1yEiFtxoFPOt3rLY7qwCglvdo WUASQLBWEEsIw33vIyM/pfA= =q7jG -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--