From patchwork Tue Apr 15 07:03:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 552 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 4D185360075 for ; Tue, 15 Apr 2014 00:02:26 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14307373) id D35A9462947D; Tue, 15 Apr 2014 00:02:25 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx22.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id A6026462945F for ; Tue, 15 Apr 2014 00:02:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=RbW/0l6vbtm/eWt/lzs7rlL6VOGss 4+5EJdJGB1+P9v1qvdJVD8UD4aAJ9BGd/nT2CKuxgkLI3COB0UoKMmOHZtJdxfql RTkXQcFwoo4W7xKq5gUWc6wq9x2GoK7zH7tLkqlx8ZeHHILiit0ECaALvijOEzMN RV/hQQeAjKx1yY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=W8RK6PWREszGe9IoA22tBuVsHKo=; b=Mkx gota9Ag6WbvYLfkOhT4IhtNvhOtwKcLs/21PZPKXKh7ZgRhb23yNxxOvzQQo2W8f PqTF+T1lqz8a/WMLIVPgP2dwVVLGhIL3/t0lpKyC7WAVJ4Y0aB3/FJ7T8J58o5Z6 VtKcPBa7N6nEYpmWMmhNF8YeqkSyN9EWfFSN5W24= Received: (qmail 11397 invoked by alias); 15 Apr 2014 07:02:23 -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 11385 invoked by uid 89); 15 Apr 2014 07:02:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Tue, 15 Apr 2014 12:33:05 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] benchtests: Link against objects in build directory Message-ID: <20140415070305.GA8521@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) X-DH-Original-To: glibc@patchwork.siddhesh.in Using -lm and -lpthread results in the shared objects in the system being used to link against. This happened to work for libm because there haven't been any changes to the libm ABI recently that could break the existing benchmarks. This doesn't work for the pthread benchmarks though. So to fix this, use the shared object directly using $(objpfx)$(..) instead. Tested on x6_64. Siddhesh * benchtests/Makefile: Link against libpthread and libm from build directory. --- benchtests/Makefile | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/benchtests/Makefile b/benchtests/Makefile index 4989794..b4d006c 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -40,27 +40,27 @@ benchset := $(string-bench-all) $(stdlib-bench) CFLAGS-bench-ffs.c += -fno-builtin CFLAGS-bench-ffsll.c += -fno-builtin -LDLIBS-bench-acos = -lm -LDLIBS-bench-acosh = -lm -LDLIBS-bench-asin = -lm -LDLIBS-bench-asinh = -lm -LDLIBS-bench-atan = -lm -LDLIBS-bench-atanh = -lm -LDLIBS-bench-cos = -lm -LDLIBS-bench-cosh = -lm -LDLIBS-bench-exp = -lm -LDLIBS-bench-exp2 = -lm -LDLIBS-bench-log = -lm -LDLIBS-bench-log2 = -lm -LDLIBS-bench-pow = -lm -LDLIBS-bench-pthread_once = -lpthread -LDLIBS-bench-rint = -lm -LDLIBS-bench-sin = -lm -LDLIBS-bench-sinh = -lm -LDLIBS-bench-sqrt = -lm -LDLIBS-bench-tan = -lm -LDLIBS-bench-tanh = -lm -LDLIBS-bench-sincos = -lm +LDLIBS-bench-acos = $(objpfx)$(..)math/libm.so +LDLIBS-bench-acosh = $(objpfx)$(..)math/libm.so +LDLIBS-bench-asin = $(objpfx)$(..)math/libm.so +LDLIBS-bench-asinh = $(objpfx)$(..)math/libm.so +LDLIBS-bench-atan = $(objpfx)$(..)math/libm.so +LDLIBS-bench-atanh = $(objpfx)$(..)math/libm.so +LDLIBS-bench-cos = $(objpfx)$(..)math/libm.so +LDLIBS-bench-cosh = $(objpfx)$(..)math/libm.so +LDLIBS-bench-exp = $(objpfx)$(..)math/libm.so +LDLIBS-bench-exp2 = $(objpfx)$(..)math/libm.so +LDLIBS-bench-log = $(objpfx)$(..)math/libm.so +LDLIBS-bench-log2 = $(objpfx)$(..)math/libm.so +LDLIBS-bench-pow = $(objpfx)$(..)math/libm.so +LDLIBS-bench-pthread_once = $(objpfx)$(..)nptl/libpthread.so +LDLIBS-bench-rint = $(objpfx)$(..)math/libm.so +LDLIBS-bench-sin = $(objpfx)$(..)math/libm.so +LDLIBS-bench-sinh = $(objpfx)$(..)math/libm.so +LDLIBS-bench-sqrt = $(objpfx)$(..)math/libm.so +LDLIBS-bench-tan = $(objpfx)$(..)math/libm.so +LDLIBS-bench-tanh = $(objpfx)$(..)math/libm.so +LDLIBS-bench-sincos = $(objpfx)$(..)math/libm.so