Skip to contentSkip to conversation

snd_timer01: Fix compilation

PATCH New Cyril Hrubis 1 participant 1 message Jul 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 snd_timer01: Fix compilation

On a few older distributions the timer functions used in fuzzy sync library needs -lrt and also -pthread has to be in CFLAGS instead.

---
 testcases/kernel/sound/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
testcases/kernel/sound/Makefile +2 -2
index ad1e25c30..9abcc2b27 100644
@@ -6,7 +6,7 @@ include $(top_srcdir)/include/mk/testcases.mk
 
 CPPFLAGS		+= -D_GNU_SOURCE
 
-LDLIBS			+= -pthread
-
+snd_timer01: CFLAGS+=-pthread
+snd_timer01: LDLIBS+=-lrt
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
Signature · 1 line
2.21.0