From patchwork Tue Oct 23 06:16:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10652739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC57613BF for ; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8787F292E5 for ; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C09C29307; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B427292E5 for ; Tue, 23 Oct 2018 06:17:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbeJWOjY (ORCPT ); Tue, 23 Oct 2018 10:39:24 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41460 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727367AbeJWOjY (ORCPT ); Tue, 23 Oct 2018 10:39:24 -0400 Received: by mail-pg1-f196.google.com with SMTP id 23-v6so140537pgc.8 for ; Mon, 22 Oct 2018 23:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zh5a0oXfAbjeEOgFxGihzvB+6U1+ro2b74+S+sXuMNA=; b=nU06CDGd2YGQj8WTj6v61F6jiqwWWp9IwJGQGBmI+okH/f00JTe3IN0P4W8cf8d3cI H6nLPevdDTCX9XPusSQekvDJuPOJvQFSMdpJNRi4Jj755FwqBuEH0RYZrqIDqHQBRvy5 /A8GrYsiB8SdEfyEzbCc7/h7bSgyf5mM3NITXW2rZT8RAv38W+4jsN8qdmq6rCBO3HJh fd369hzm/qD0y0/YZk/GrAFF233fFGfF+ZLEwEIt20XUa2r6SJQzcDShdL56y7GKcGmF zdtMNTrtXp5x1KMYdz9VpCsP6b9lvgUdED6bVEkBf4Ji2bWrIVJn9R2q0BwStUSQVEN1 pOgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=zh5a0oXfAbjeEOgFxGihzvB+6U1+ro2b74+S+sXuMNA=; b=HgPEVAmdzZRDLruQvo6KMQEUmctDqH49TswAVj4l/5BRh2F0cpAYuKFh3Fhk28hzLG s4AJK94NDjsiGXqRhHsCtXWKZuLgXGjIQqWHbrnAYgRXDvENp5wpD4GVsmYZyNIJ9fpq HiLhHD2XJkCx6kqVgdlVPFteX6OsKZkOg/MnpMZcKSOBb0xUnvfapShCe7bnuu5s9S0W /l6fbjm08RjBNAUd2CwmVCFH1K1uXtJkAu2jdGp0ZwhGOfH0dDXfpQOtZiIBQSlwoYCJ XdfvI5cxtgBIh6lHwPdPHgb8xKVyoqt1Ohh7kSyO9S+LXzlriPliIG6uSx4Gv/uV8CV6 9QUQ== X-Gm-Message-State: ABuFfogtJc23MYLBXYRJrR7hVoN694EauF+T2GF8gHhlSLLb0bu/Dob3 zdwopb7+A3rzasD7NQAuhFc= X-Google-Smtp-Source: ACcGV62TgPSlJB5jt/fewdp9Eo5NI1MfnAG9NIKMiKYAeyFKODwky7oS6klNT3Enhp9pQtikNoV5sA== X-Received: by 2002:a63:aa48:: with SMTP id x8-v6mr44674758pgo.87.1540275448069; Mon, 22 Oct 2018 23:17:28 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.19]) by smtp.gmail.com with ESMTPSA id a16-v6sm1491074pgb.6.2018.10.22.23.17.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 23:17:27 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 23 Oct 2018 16:47:22 +1030 From: Joel Stanley To: linuxppc-dev@lists.ozlabs.org Cc: linux-kselftest@vger.kernel.org Subject: [PATCH 3/6] selftests: powerpc/ptrace: Fix linking against pthread Date: Tue, 23 Oct 2018 16:46:54 +1030 Message-Id: <20181023061657.18007-4-joel@jms.id.au> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181023061657.18007-1-joel@jms.id.au> References: <20181023061657.18007-1-joel@jms.id.au> MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some of the ptrace tests require -ptrace when linking: /usr/bin/ld: /tmp/ccH32S9w.o: in function `init_child_sync': core-pkey.c:(.text+0x1d64): undefined reference to `sem_init' The targets for these tests are modfied in lib.mk to add the $(OUTPUT) prefix. The makefile needs to specify that modifying those rules, or else they do not match and we miss out on the extra flags. Signed-off-by: Joel Stanley --- tools/testing/selftests/powerpc/ptrace/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile index 58de6d4a0cf4..8d3f006c98cc 100644 --- a/tools/testing/selftests/powerpc/ptrace/Makefile +++ b/tools/testing/selftests/powerpc/ptrace/Makefile @@ -9,7 +9,7 @@ include ../../lib.mk CFLAGS += -m64 -I../../../../../usr/include -I../tm -mhtm -fno-pie -ptrace-pkey core-pkey: child.h -ptrace-pkey core-pkey: LDLIBS += -pthread +$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: child.h +$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread $(TEST_GEN_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h