From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hildenbrand Subject: [PATCH kvm-unit-tests] Makefile: drop "-lpthread -lrt" Date: Thu, 4 May 2017 13:48:04 +0200 Message-ID: <20170504114804.11140-1-david@redhat.com> Cc: Thomas Huth To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60112 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbdEDLsI (ORCPT ); Thu, 4 May 2017 07:48:08 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4AA939D50A for ; Thu, 4 May 2017 11:48:08 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: Both, -lpthread and -lrt seem to be relevant for api/ only. x86 already adds these flags manually, when linking api/%. So we should be safe to just drop it. This makes it possible to easily cross-compile when e.g. the librt is not available (or not linked to libc). Suggested-by: Thomas Huth Signed-off-by: David Hildenbrand --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 2539f9a..cf5d65b 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,6 @@ CXXFLAGS += $(CFLAGS) autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d LDFLAGS += $(CFLAGS) -LDFLAGS += -pthread -lrt $(libcflat): $(cflatobjs) $(AR) rcs $@ $^ -- 2.9.3