From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129196 invoked by alias); 14 Nov 2016 19:22:03 -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 129171 invoked by uid 89); 14 Nov 2016 19:22:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=senkevich, Senkevich, andrewnsenkevichgmailcom, andrew.n.senkevich@gmail.com X-HELO: mail-qt0-f177.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0CJzELVk65tRusp97WKDSzDwCtmZzTWU6iPEjH963JE=; b=hvIvi5VyfK9eN8e2qvSzE4lQgqM4ecW4x2EEHNHpablGkdiP8dY/k8pIGaZmfju7gt K6KA5Bl7vv4JCQSPlB0iCv2F6y9v5/EBiFM0E1aq6hVYVKPub1Q6pXwkPL8+My6BPJ3b RCI4Wb0ZEobeq6jQLOq/+52JpYKiFG2GpxT7H6YsdDneee/ZLSI5gXYWDJwlzb6GuW4n sNSyp0ni7tw3SRLiSbRPz/SQBsAkPXqKxBjNP6AelLE6uBey14pcBDrzqGdPRHTeEMAS je7vE3O9NNNhlwEdtFOklFOc3cBLb0HPaEc4IAWMBEluyOstkRsnifMZWNz4sSTgrluE /99w== X-Gm-Message-State: ABUngvchoiSzTzh68/hDL0Poap7m9asKcaFTLIXmY4/BtuVgGPQiI7ImsEuIaWQeLhK3FtJAoX+QFcl/NFJyFw== X-Received: by 10.237.37.60 with SMTP id v57mr12928732qtc.135.1479151319897; Mon, 14 Nov 2016 11:21:59 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: "H.J. Lu" Date: Mon, 14 Nov 2016 19:22:00 -0000 Message-ID: Subject: Re: [PATCH] Install libm.a as linker script [BZ #20539] To: Andrew Senkevich Cc: libc-alpha Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2016-11/txt/msg00475.txt.bz2 On Mon, Nov 14, 2016 at 11:15 AM, Andrew Senkevich wrote: > 2016-10-25 1:02 GMT+03:00 H.J. Lu : >>> diff --git a/Makerules b/Makerules >>> index e865782..290f927 100644 >>> --- a/Makerules >>> +++ b/Makerules >>> @@ -1190,7 +1190,9 @@ $(addprefix $(inst_sbindir)/,$(install-sbin)): \ >>> $(do-install-program) >>> endif >>> ifdef install-lib >>> -install-lib.a := $(filter lib%.a,$(install-lib)) >>> +ifeq ($(build-mathvec),yes) >>> +install-lib.a := $(filter-out libm.a,$(filter lib%.a,$(install-lib))) >>> +endif >> >> Should we use $(install-lib-ldscripts) instead of libm.a here? > > I had tried but haven't rich a success. Did you add libm.a to install-lib-ldscripts? >>> # Rules for the test suite. >>> >> >> Do you need to update rules for building static math tests with >> libmvec.a? > > I haven't added -lmvec explicitly for any static math test so I think no. Static math test in glibc may fail if the same bug is triggered with ether new GCC or new test. > Attached corrected version. > echo 'GROUP ( $(inst_libdir)/libm-$(lib-version).a $(inst_libdir)/libmvec.a )' \ ^^^^^^^^^^^^ Please use libdir here. -- H.J.