]> rtime.felk.cvut.cz Git - canping.git/commitdiff
Link vca_canping with libm master
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 12 Mar 2024 12:34:27 +0000 (13:34 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 12 Mar 2024 12:34:27 +0000 (13:34 +0100)
Without that, compiling on some systems results in the following
error:

    /bin/ld: vca_canping.o: in function `print_stats':
    vca_canping.c:(.text+0x138f): undefined reference to `sqrt'

src/Makefile.omk

index fb55799c39dd80d9694054807a36f16536ccaf1f..27b28d40c53bbdd390257d8588b554380e97622f 100644 (file)
@@ -22,7 +22,7 @@ ifeq ($(CONFIG_OC_CANVCA),y)
 
 bin_PROGRAMS += vca_canping
 vca_canping_SOURCES = vca_canping.c
-vca_canping_LIBS = vca ulut
+vca_canping_LIBS = vca ulut m
 
 ifneq ($(filter linux,$(OMK_RULES_TYPE)),)
 LINK_PTHREAD_LIB_NAME ?= pthread