From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13374 invoked by alias); 7 Jan 2015 16:01:09 -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 13340 invoked by uid 89); 7 Jan 2015 16:01:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 07 Jan 2015 16:01:02 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 5F2FD2C400C9; Wed, 7 Jan 2015 17:00:59 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ASjor8i_7gL; Wed, 7 Jan 2015 17:00:59 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 039492C400B3; Wed, 7 Jan 2015 17:00:59 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: [RFA] Add --with-libz-prefix option in config/zlib.m4 From: Tristan Gingold In-Reply-To: <20150107144548.GX5432@adacore.com> Date: Wed, 07 Jan 2015 16:01:00 -0000 Cc: gcc-patches@gcc.gnu.org, binutils@sourceware.org, gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20150107144548.GX5432@adacore.com> To: Joel Brobecker X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00118.txt.bz2 > On 07 Jan 2015, at 15:45, Joel Brobecker wrote: >=20 > Hello, >=20 > 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. I prefer the gcc way to provide external library: --with-zlib -> system zlib used --with-zlib=3Dpathname -> zlib from pathname is used I have never needed different include and lib paths, but this is supported by gcc. (Furthermore, I think that --with-zlib vs --with-libz-prefix is confusing). Cf: --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 library = and/or the MPC library installed in a standard location and do not have the= ir sources present in the GCC source tree then you can explicitly specify t= he directory where they are installed (=E2=80=98--with-gmp=3Dgmpinstalldir= =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 sho= rthand for --with-gmp-lib=3Dgmpinstalldir/lib and --with-gmp-include=3Dgmpi= nstalldir/include. Likewise the --with-mpfr=3Dmpfrinstalldir option is shor= thand for --with-mpfr-lib=3Dmpfrinstalldir/lib and --with-mpfr-include=3Dmp= frinstalldir/include, also the --with-mpc=3Dmpcinstalldir option is shortha= nd for --with-mpc-lib=3Dmpcinstalldir/lib and --with-mpc-include=3Dmpcinsta= lldir/include. If these shorthand assumptions are not correct, you can use = the explicit include and lib options directly. You might also need to ensur= e the shared libraries can be found by the dynamic linker when building and= using GCC, for example by setting the runtime shared library path variable= (LD_LIBRARY_PATH on GNU/Linux and Solaris systems). These flags are applicable to the host platform only. When building a cross= compiler, they will not be used to configure target libraries.=20