From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9676 invoked by alias); 18 Feb 2015 17:00:23 -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 9656 invoked by uid 89); 18 Feb 2015 17:00:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: OARmail.OARCORP.com Received: from oarmail.oarcorp.com (HELO OARmail.OARCORP.com) (67.63.146.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Feb 2015 17:00:21 +0000 Received: from [192.168.1.170] (192.168.1.170) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.3.342.0; Wed, 18 Feb 2015 11:00:18 -0600 Message-ID: <54E4C522.70403@oarcorp.com> Date: Wed, 18 Feb 2015 17:00:00 -0000 From: Joel Sherrill User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "H.J. Lu" , Joel Brobecker , GCC Patches , Binutils , GDB Subject: Re: ping #3: [RFA] Add --with-libz-prefix option in config/zlib.m4 References: <20150107144548.GX5432@adacore.com> <20150218120841.GD23529@adacore.com> <20150218165457.GU544@vapier> In-Reply-To: <20150218165457.GU544@vapier> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-SW-Source: 2015-02/txt/msg00491.txt.bz2 On 2/18/2015 10:54 AM, Mike Frysinger wrote: > On 18 Feb 2015 04:56, H.J. Lu wrote: >> On Wed, Feb 18, 2015 at 4:08 AM, Joel Brobecker wrote: >>> On Wed, Jan 07, 2015 at 06:45:48PM +0400, 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. >>>> >>>> config/ChangeLog: >>>> >>>> * zlib.m4 (AM_ZLIB): Add --with-libz-prefix option support. >>>> >>>> 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. >>>> >>>> This was tested by regenerating all autoconf/automake files in >>>> the binutils-gdb project, and rebuilding GDB, using the following >>>> combinations: >>>> >>>> --with-zlib (system zlib used) >>>> --with-libz-prefix=/zlib/prefix (specific zlib linked in) >>>> --with-zlib --with-libz-prefix=/zlib/prefix (specific zlib linked in) >>>> >>>> --without-zlib (zlib support turned off) >>>> --without-zlib --with-zlib-prefix (zlib support turned off) >>>> >>>> --with-zlib (no system zlib available, configure fails with expected error) >>>> --with-zlib --with-libz-prefix=/invalid/zlib/prefix >>>> (no system zlib, configure fails with same error) >>>> >>>> OK to commit? >> Why do you want to turn off zlib? On Linux/x86, zlib is required >> for assembler. At least, you should issue an error when --without-libz >> is used in binutils for Linux/x86 target. > err, when did that happen ? why would zlib be possibly required for an > assembler ? Is there going to be a configure error when the system does not have zlib and no argument is specified? This is a common issue for people building tools for RTEMS for the first time. > -mike -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherrill@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985