]> rtime.felk.cvut.cz Git - canping.git/commitdiff
vca_canping: portablity, pthread library is not available on embedded targets.
authorPavel Pisa <ppisa@pikron.com>
Sun, 2 Apr 2023 09:09:04 +0000 (11:09 +0200)
committerPavel Pisa <ppisa@pikron.com>
Sun, 2 Apr 2023 09:09:04 +0000 (11:09 +0200)
Do not include it on non GNU/Linux systems by default.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
src/Makefile.omk

index 14ab87bb11fafd2f36ee96571e9cf9eed8618559..fb55799c39dd80d9694054807a36f16536ccaf1f 100644 (file)
@@ -24,7 +24,9 @@ bin_PROGRAMS += vca_canping
 vca_canping_SOURCES = vca_canping.c
 vca_canping_LIBS = vca ulut
 
+ifneq ($(filter linux,$(OMK_RULES_TYPE)),)
 LINK_PTHREAD_LIB_NAME ?= pthread
+endif
 vca_canping_LIBS += $(LINK_PTHREAD_LIB_NAME)
 
 endif #CONFIG_OC_CANVCA