From patchwork Tue Sep 20 10:49:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 15790 Received: (qmail 117762 invoked by alias); 20 Sep 2016 10:49:11 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 117746 invoked by uid 89); 20 Sep 2016 10:49:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=o X-HELO: mx1.redhat.com Date: Tue, 20 Sep 2016 12:49:06 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] Generate .op pattern rules for profiling builds only User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20160920104906.8A539439929AA@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) .op pattern rules are not used in non-profiling builds. This does not cause any changes to both profiling and non-profiling builds. 2016-09-20 Florian Weimer * Makeconfig (all-object-suffixes): Include .op only if $(build-profile). diff --git a/Makeconfig b/Makeconfig index c1ce74b..a785860 100644 --- a/Makeconfig +++ b/Makeconfig @@ -905,7 +905,8 @@ endif # The compilation rules use $(CPPFLAGS-${SUFFIX}) and $(CFLAGS-${SUFFIX}) # to pass different flags for each flavor. libtypes = $(foreach o,$(object-suffixes-for-libc),$(libtype$o)) -all-object-suffixes := .o .os .op .oS +# .op may be added to all-object-suffixes below. +all-object-suffixes := .o .os .oS object-suffixes := CPPFLAGS-.o = $(pic-default) CFLAGS-.o = $(filter %frame-pointer,$(+cflags)) @@ -930,6 +931,7 @@ PIE-ccflag = -fPIE ifeq (yes,$(build-profile)) # Under --enable-profile, we will build a static library of profiled objects. # The profiled object files are named foo.op. +all-object-suffixes += .op object-suffixes += .op CPPFLAGS-.op = -DPROF $(pic-default) CFLAGS-.op = -pg