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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>
---
 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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux