[kvm-unit-tests] Makefile: drop "-lpthread -lrt"
diff mbox

Message ID 20170504114804.11140-1-david@redhat.com
State New
Headers show

Commit Message

David Hildenbrand May 4, 2017, 11:48 a.m. UTC
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 <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
 Makefile | 1 -
 1 file changed, 1 deletion(-)

diff mbox

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 += -pthread -lrt
 $(libcflat): $(cflatobjs)
 	$(AR) rcs $@ $^