From 6ae1b9875e0b804eabdeb10fda23fd8db5fc9f1c Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周三, 01 2月 2023 18:21:12 +0800
Subject: [PATCH] build: allow compilation by C++ compiler

---
 examples/test-parser/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/examples/test-parser/Makefile b/examples/test-parser/Makefile
index 400e123..dcfa0b1 100644
--- a/examples/test-parser/Makefile
+++ b/examples/test-parser/Makefile
@@ -3,7 +3,7 @@
 
 SRCS = main.c ../common/scpi-def.c
 CFLAGS += -Wextra -Wmissing-prototypes -Wimplicit -I ../../libscpi/inc/
-LDFLAGS += ../../libscpi/dist/libscpi.a -Wl,--as-needed
+LDFLAGS += -lm ../../libscpi/dist/libscpi.a -Wl,--as-needed
 
 .PHONY: clean all
 

--
Gitblit v1.9.1