Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp306887imm; Wed, 29 Aug 2018 00:03:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZnUrEprUk4oehwsJL3+D6fEf0ENMdEXwAjbAtaryu1rKJenWu9ArKiAU3dhrzAOIjR9aTC X-Received: by 2002:a17:902:8a97:: with SMTP id p23-v6mr4670029plo.21.1535526233332; Wed, 29 Aug 2018 00:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535526233; cv=none; d=google.com; s=arc-20160816; b=XE+CTGNyhUO0v9iRw7i4TRgmeOzQfOFEPlL5nwSbHvUmz9mVlaXYs/LVOmMRssI08L mc1JP1mUFZOsTi9fjyR492Js81s3weuAV3wDoRvYhFJI4uEF1VNKOtGBGYpQrQPV+x8l pQCyGiU0sXLZLSmQNW4iszVUz3K6LSNyzI31SwDmepud8J1rLc4VnuC3YgvQF3JwRyE5 +HrhfXiYCEdzSKFu6277emkCwO5M5RvnVbEYvu3g1+o+C+9qmF6H/JNP5dcu2uEsNAse REproZfNOMhkV5u+SGHTmEljvZMHmhpeEPZHzRJUfzUC9z6o0Dwt8GCoixNSKO/JUAtc AG5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from:arc-authentication-results; bh=LuTuNTL4QUP2G/v/F53FqNRr3lfqWyYPG9ahebSwy8E=; b=AUMPtXQOnm0PfWMMocXG6HtXBZ2F//IKhE5ZIhdcPl382Jk4RBsD+lwuSSFmPVKxIu ISacwCeyGF3sfpCIWgrWmsdAEEpTyjTfmflvQfm4czJzbZc6CJ+eXyfaeDUg9PscrEha hrwLEKZOIYG3RwU+bH3ZrPMuPbKjCNkGdxiIvGHCBovFbDMnxs7enEyWdS/qVRkzq6UA bTqk7B3UIVxkuJbvKsNpTXkBmS8En/o4QiZTz8a88CeuCW30B/IZTEo6y5vK7nEzp55n DUccpZU7iSObdj1bZcY5bayVZ9mlhkIcy7FCQD8ZpHWE98kLDCYz3GnURydEDGZ8Zu0j yNOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n85-v6si3160767pfj.251.2018.08.29.00.03.37; Wed, 29 Aug 2018 00:03:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727590AbeH2K5f (ORCPT + 99 others); Wed, 29 Aug 2018 06:57:35 -0400 Received: from mail.windriver.com ([147.11.1.11]:34147 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbeH2K5f (ORCPT ); Wed, 29 Aug 2018 06:57:35 -0400 Received: from ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id w7T720fW026482 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 29 Aug 2018 00:02:00 -0700 (PDT) Received: from pek-lyang0-d1.corp.ad.wrs.com (128.224.162.194) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.408.0; Wed, 29 Aug 2018 00:01:59 -0700 From: Lei Yang To: , , , , Subject: [PATCH]] kvm: selftests: use -pthread instead of -lpthread Date: Wed, 29 Aug 2018 15:04:08 +0800 Message-ID: <1535526248-3759-1-git-send-email-Lei.Yang@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I run into the following error testing/selftests/kvm/dirty_log_test.c:285: undefined reference to `pthread_create' testing/selftests/kvm/dirty_log_test.c:297: undefined reference to `pthread_join' collect2: error: ld returned 1 exit status my gcc version is gcc version 4.8.4 "-pthread" would work everywhere Signed-off-by: Lei Yang --- tools/testing/selftests/kvm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index 03b0f55..48c970c 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -20,7 +20,7 @@ INSTALL_HDR_PATH = $(top_srcdir)/usr LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/ LINUX_TOOL_INCLUDE = $(top_srcdir)tools/include CFLAGS += -O2 -g -std=gnu99 -I$(LINUX_TOOL_INCLUDE) -I$(LINUX_HDR_PATH) -Iinclude -I$(