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