From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14462 invoked by alias); 19 Feb 2015 07:55:14 -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 14427 invoked by uid 89); 19 Feb 2015 07:55:13 -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:55:12 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1YOLwx-00046d-Js from Thomas_Schwinge@mentor.com ; Wed, 18 Feb 2015 23:55:07 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Thu, 19 Feb 2015 07:55:05 +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: References: <20150107144548.GX5432@adacore.com> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) Date: Thu, 19 Feb 2015 07:55:00 -0000 Message-ID: <8761aye3p5.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/msg00517.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 2498 Hi! On Wed, 7 Jan 2015 17:00:59 +0100, Tristan Gingold wr= ote: >=20 > > On 07 Jan 2015, at 15:45, Joel Brobecker wrote: > > 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 confusing= ). 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: > 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 librar= y and/or the MPC library installed in a standard location and do not have t= heir sources present in the GCC source tree then you can explicitly specify= the directory where they are installed (=E2=80=98--with-gmp=3Dgmpinstalldi= r=E2=80=99, =E2=80=98--with-mpfr=3Dmpfrinstalldir=E2=80=99, =E2=80=98--with= -mpc=3Dmpcinstalldir=E2=80=99). The --with-gmp=3Dgmpinstalldir option is sh= orthand for --with-gmp-lib=3Dgmpinstalldir/lib and --with-gmp-include=3Dgmp= installdir/include. Likewise the --with-mpfr=3Dmpfrinstalldir option is sho= rthand for --with-mpfr-lib=3Dmpfrinstalldir/lib and --with-mpfr-include=3Dm= pfrinstalldir/include, also the --with-mpc=3Dmpcinstalldir option is shorth= and for --with-mpc-lib=3Dmpcinstalldir/lib and --with-mpc-include=3Dmpcinst= alldir/include. If these shorthand assumptions are not correct, you can use= the explicit include and lib options directly. You might also need to ensu= re the shared libraries can be found by the dynamic linker when building an= d using GCC, for example by setting the runtime shared library path variabl= e (LD_LIBRARY_PATH on GNU/Linux and Solaris systems). > These flags are applicable to the host platform only. When building a cro= ss compiler, they will not be used to configure target libraries.=20 Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature; name="signature.asc" Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU5ZbGAAoJEK3/DN1sMFFtw/MH/R/VXNVqnRdl4n+tCLqcBtqP 04Y37VYG2sc7Xd6Atf/FOFIrC7H9oryXSxL7DvCD5N2Hxfs/hTCBSJ4e71EfknZD HRFe1slMeObNIpeZBEp0iMa1CBpPg7Kcag7pBOULvk7gDb7aLhvd0qJXAVOy1amB bSmT84jufiG0iaZLdxBnagW2oyDrx6FhfyxHvPhf5RDyKTnA1xazEeIz6KcPYcNY ltPgMxI40fduc/IkiB9PtfVhAZg2jRf8FipCdVWdbx8SgFuYQv7D+zS8dzHteqQh 5duQc6nqsFEBKZ5OLr3CABcNjKJHEtXM2KRF3wYoPhA+aE0qG/IUmCPUoJYaOys= =LMsA -----END PGP SIGNATURE----- --=-=-=--