From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93049 invoked by alias); 13 Jun 2017 11:40:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 93017 invoked by uid 89); 13 Jun 2017 11:40:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.suse.de From: Andreas Schwab To: "H.J. Lu" Cc: GNU C Library Subject: Re: [PATCH] Make copy of from GCC 7 [BZ #21573] References: <20170613113813.GA7656@gmail.com> X-Yow: Somewhere in Tenafly, New Jersey, a chiropractor is viewing ``Leave it to Beaver''! Date: Tue, 13 Jun 2017 11:40:00 -0000 In-Reply-To: <20170613113813.GA7656@gmail.com> (H. J. Lu's message of "Tue, 13 Jun 2017 04:38:13 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-06/txt/msg00527.txt.bz2 On Jun 13 2017, "H.J. Lu" wrote: > diff --git a/configure b/configure > index 422482f..888224e 100755 > --- a/configure > +++ b/configure > @@ -5336,10 +5336,13 @@ fi > # copy of those headers in Makerules. > if test -n "$CXX"; then > find_cxx_header () { > - echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "/$1:/{s/:\$//;p}" > + echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "/$2:/{s/:\$//;p}" > } > - CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" > - CXX_CMATH_HEADER="$(find_cxx_header cmath)" > + CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib cstdlib)" > + # Also make a copy of from GCC 7 to prevent it from > + # including /usr/include/stdlib.h. > + CXX_CSTDLIB_HEADER="$CXX_CSTDLIB_HEADER $(find_cxx_header bits/std_abs.h bits\\\/std_abs.h)" Use a different delimiter in the sed command. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."