From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21556 invoked by alias); 21 Jan 2015 08:22:06 -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 21436 invoked by uid 89); 21 Jan 2015 08:21:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW 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, 21 Jan 2015 08:21:27 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 4CC2C28F0803; Wed, 21 Jan 2015 09:21:16 +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 DlNcQGXDwV5E; Wed, 21 Jan 2015 09:21:16 +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 3E93728F07F8; Wed, 21 Jan 2015 09:21:15 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: ping: [RFA] Add --with-libz-prefix option in config/zlib.m4 From: Tristan Gingold In-Reply-To: <20150121074758.GM4041@adacore.com> Date: Wed, 21 Jan 2015 08:22:00 -0000 Cc: gcc-patches@gcc.gnu.org, binutils@sourceware.org, gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <50F92C76-7138-46CB-B620-D6001120A5D1@adacore.com> References: <20150107144548.GX5432@adacore.com> <20150121074758.GM4041@adacore.com> To: Joel Brobecker X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00565.txt.bz2 > On 21 Jan 2015, at 08:47, Joel Brobecker wrote: >=20 > Thank you! :) What is the rational for having --with-zlib but --with-libz-prefix (ie zlib vs libz) ? Looks not very consistent. Tristan. >=20 > On Wed, Jan 07, 2015 at 06:45:48PM +0400, Joel Brobecker wrote: >> 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. >>=20 >> config/ChangeLog: >>=20 >> * zlib.m4 (AM_ZLIB): Add --with-libz-prefix option support. >>=20 >> I didn't see any file in the GCC project that uses this macro, >> so for the GCC repository, the change to zlib.m4 is it. But >> I am also attaching to this email a copy of the patch that >> will be applied to the binutils-gdb.git repository, with all >> configury using this macro being re-generated - mostly for info, >> also as a heads-up to both binutils and GDB. >>=20 >> This was tested by regenerating all autoconf/automake files in >> the binutils-gdb project, and rebuilding GDB, using the following >> combinations: >>=20 >> --with-zlib (system zlib used) >> --with-libz-prefix=3D/zlib/prefix (specific zlib linked in) >> --with-zlib --with-libz-prefix=3D/zlib/prefix (specific zlib linked in) >>=20 >> --without-zlib (zlib support turned off) >> --without-zlib --with-zlib-prefix (zlib support turned off) >>=20 >> --with-zlib (no system zlib available, configure fails with expected er= ror) >> --with-zlib --with-libz-prefix=3D/invalid/zlib/prefix >> (no system zlib, configure fails with same error)