From 36861ef72f0bf602ef950b07f5d24afb9ce63b51 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 12 Mar 2024 13:34:27 +0100 Subject: [PATCH] Link vca_canping with libm 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.omk b/src/Makefile.omk index fb55799..27b28d4 100644 --- a/src/Makefile.omk +++ b/src/Makefile.omk @@ -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 -- 2.39.2