optional -lm

This commit is contained in:
Jan-Piet Mens
2026-07-29 10:18:42 +02:00
parent b55f5659f6
commit a2e2e83d32
+2 -3
View File
@@ -36,13 +36,12 @@ true \n
#endif' | $(CPP) -P - >/dev/null 2>&1 && echo yes
endef
LIBLM ?= no
LIBLM = no
ifeq ($(WITH_MQTT),yes)
CFLAGS += -DWITH_MQTT=1
CFLAGS += $(MOSQUITTO_CFLAGS)
LIBS += $(MOSQUITTO_LIBS)
LIBLM ?= yes
endif
ifeq ($(WITH_PING),yes)
@@ -54,7 +53,7 @@ ifeq ($(WITH_LUA),yes)
LIBS += $(LUA_LIBS)
OTR_OBJS += hooks.o
else
LIBLM ?= yes
LIBLM = yes
endif
ifeq ($(WITH_ENCRYPT),yes)