From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20303 invoked by alias); 19 Feb 2015 07:58:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20260 invoked by uid 89); 19 Feb 2015 07:58:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Feb 2015 07:58:29 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YOM0A-0004wJ-92 from Thomas_Schwinge@mentor.com ; Wed, 18 Feb 2015 23:58:26 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Thu, 19 Feb 2015 07:58:24 +0000 From: Thomas Schwinge To: Joel Brobecker CC: Tristan Gingold , , , Subject: Re: [RFA] Add --with-libz-prefix option in config/zlib.m4 In-Reply-To: <8761aye3p5.fsf@kepler.schwinge.homeip.net> References: <20150107144548.GX5432@adacore.com> <8761aye3p5.fsf@kepler.schwinge.homeip.net> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) Date: Thu, 19 Feb 2015 07:58:00 -0000 Message-ID: <871tlme3j9.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2015-02/txt/msg00518.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 2786 Hi! On Thu, 19 Feb 2015 08:54:46 +0100, I wrote: > On Wed, 7 Jan 2015 17:00:59 +0100, Tristan Gingold = wrote: > >=20 > > > On 07 Jan 2015, at 15:45, Joel Brobecker wrot= e: > > > This patch enhances config/zlib.m4 to introduce an extra option > > > --with-libz-prefix which allows us to provide the location of > > > the zlib library we want to use during the build. > >=20 > > I prefer the gcc way to provide external library: > >=20 > > --with-zlib -> system zlib used > > --with-zlib=3Dpathname -> zlib from pathname is used > >=20 > > I have never needed different include and lib paths, but > > this is supported by gcc. > >=20 > > (Furthermore, I think that --with-zlib vs --with-libz-prefix is confusi= ng). >=20 > I'm not a GCC build machinery maintainer, but I do second Tristan's > suggestion to stay compatible with the existing --with-[...] options that > GCC already supports: >=20 > > Cf: > >=20 > > --with-gmp=3Dpathname > > --with-gmp-include=3Dpathname > > --with-gmp-lib=3Dpathname > > --with-mpfr=3Dpathname > > --with-mpfr-include=3Dpathname > > --with-mpfr-lib=3Dpathname > > --with-mpc=3Dpathname > > --with-mpc-include=3Dpathname > > --with-mpc-lib=3Dpathname > > If you want to build GCC but do not have the GMP library, the MPFR libr= ary and/or the MPC library installed in a standard location and do not have= their sources present in the GCC source tree then you can explicitly speci= fy the directory where they are installed (=E2=80=98--with-gmp=3Dgmpinstall= dir=E2=80=99, =E2=80=98--with-mpfr=3Dmpfrinstalldir=E2=80=99, =E2=80=98--wi= th-mpc=3Dmpcinstalldir=E2=80=99). The --with-gmp=3Dgmpinstalldir option is = shorthand for --with-gmp-lib=3Dgmpinstalldir/lib and --with-gmp-include=3Dg= mpinstalldir/include. Likewise the --with-mpfr=3Dmpfrinstalldir option is s= horthand for --with-mpfr-lib=3Dmpfrinstalldir/lib and --with-mpfr-include= =3Dmpfrinstalldir/include, also the --with-mpc=3Dmpcinstalldir option is sh= orthand for --with-mpc-lib=3Dmpcinstalldir/lib and --with-mpc-include=3Dmpc= installdir/include. If these shorthand assumptions are not correct, you can= use the explicit include and lib options directly. You might also need to = ensure the shared libraries can be found by the dynamic linker when buildin= g and using GCC, for example by setting the runtime shared library path var= iable (LD_LIBRARY_PATH on GNU/Linux and Solaris systems). > > These flags are applicable to the host platform only. When building a c= ross compiler, they will not be used to configure target libraries.=20 Ah, now I've seen the other email: zlib is not actually used in GCC, and GCC and binutils/GDB have already diverged in their handling of such options -- unfortunately. Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature; name="signature.asc" Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU5ZeaAAoJEK3/DN1sMFFt2VoH/0Q4o9JftmUMF/GE7dHIpYGk YCVqcPvTHXP4zacAJPodTjTpV1HvvAjzI+xsAtOywEg+2tXkXoXdNaT54YRSshTF CE+9lcqIgrT5sJcRPw1AtofGhCNvMeZjuyia9V6tfv7eoI8LaZUdTHiMF3SoR6/E rZhhcBTYgiB9TkCrSS/Ccp1w3lspAbfxKl2l8nOx+65yzoJBmKu3UyhZ/jsdjkeZ QQd3VoYiUaqu3eCOuA5w3GBlBQ3ynXKalvj/4vxUJJY/vZ89nfgBMiwqaGHgO3vX 6a+Sigw6ntuoBrrbAuQfq2qp1+ZPcltX6EZkxaaElpvjMZ8HBDeJ9nnhAfZ79zc= =boyc -----END PGP SIGNATURE----- --=-=-=--