* [PATCH kvm-unit-tests] Makefile: drop "-lpthread -lrt"
@ 2017-05-04 11:48 David Hildenbrand
0 siblings, 0 replies; only message in thread
From: David Hildenbrand @ 2017-05-04 11:48 UTC (permalink / raw)
To: kvm; +Cc: Thomas Huth
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 --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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-04 11:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-04 11:48 [PATCH kvm-unit-tests] Makefile: drop "-lpthread -lrt" David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox