From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 901BBC31E5B for ; Mon, 17 Jun 2019 21:22:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5625620861 for ; Mon, 17 Jun 2019 21:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560806533; bh=0asejfpYRWwdPg2ym2PXWFlNFC9l1OikWejCVTTR3ms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=uGS3o0O5qNLKGzSf+zgieIAx6BxTsO3tmcsxib7MedpxDkR/Xd3T1AjJApb7OCYXX tumN7s2YLzxzTm3uoc5Xo12saAZ94SZW7eZ/xLnX6ZST4UYmKNiFt0GCh3QDfcIEbz D40x7qjK4yyFDm8fYhosqsr+voKYxI/o6gOA/8NM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729496AbfFQVWM (ORCPT ); Mon, 17 Jun 2019 17:22:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:46760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729495AbfFQVWL (ORCPT ); Mon, 17 Jun 2019 17:22:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 68456208E4; Mon, 17 Jun 2019 21:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560806530; bh=0asejfpYRWwdPg2ym2PXWFlNFC9l1OikWejCVTTR3ms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GUtimlQ1GRGGw7Pbceu4MRv9CDiak8ONkVNTH7tZlfuiBcz7U7eQpeekUyAUWPOtk 0hdPREbQ+RcxSDTVSUalE9i+d5piICseI1qIjZKcjZ+woEnbRW7sPk4pBOdxhtKuNC uTTDUhaLRc4iVPuPQrnoOOSN2QlMHBErv2pR3RlY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jens Axboe , Sasha Levin Subject: [PATCH 5.1 082/115] tools/io_uring: fix Makefile for pthread library link Date: Mon, 17 Jun 2019 23:09:42 +0200 Message-Id: <20190617210804.208810744@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190617210759.929316339@linuxfoundation.org> References: <20190617210759.929316339@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org [ Upstream commit 486f069253c3c738dec62daeb16f7232b2cca065 ] Currently fails with: io_uring-bench.o: In function `main': /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:560: undefined reference to `pthread_create' /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:588: undefined reference to `pthread_join' collect2: error: ld returned 1 exit status Makefile:11: recipe for target 'io_uring-bench' failed make: *** [io_uring-bench] Error 1 Move -lpthread to the end. Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- tools/io_uring/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/io_uring/Makefile b/tools/io_uring/Makefile index f79522fc37b5..00f146c54c53 100644 --- a/tools/io_uring/Makefile +++ b/tools/io_uring/Makefile @@ -8,7 +8,7 @@ all: io_uring-cp io_uring-bench $(CC) $(CFLAGS) -o $@ $^ io_uring-bench: syscall.o io_uring-bench.o - $(CC) $(CFLAGS) $(LDLIBS) -o $@ $^ + $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS) io_uring-cp: setup.o syscall.o queue.o -- 2.20.1