Skip to contentSkip to conversation

Makefile: drop "-lpthread -lrt"

PATCH New David Hildenbrand 1 participant 1 message May 4, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: drop "-lpthread -lrt"

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).

---
 Makefile | 1 -
 1 file changed, 1 deletion(-)
Makefile +0 -1
index 2539f9a..cf5d65b 100644
@@ -65,7 +65,6 @@ CXXFLAGS += $(CFLAGS)
 autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d
 
 LDFLAGS += $(CFLAGS)
-LDFLAGS += -pthread -lrt
 
 $(libcflat): $(cflatobjs)
 	$(AR) rcs $@ $^
Signature · 1 line
2.9.3