From 273862e5d89ba03a0b3a3e412a46cb0617be802d Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 1 May 2024 16:50:32 -0700 Subject: [PATCH] Makefile: disable cJSON support when building without math support Signed-off-by: Thiago Macieira --- Makefile.configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.configure b/Makefile.configure index 16bab6bb..6ccc402c 100644 --- a/Makefile.configure +++ b/Makefile.configure @@ -15,8 +15,9 @@ PROGRAM-freestanding += int main() {} CCFLAGS-freestanding = $(CFLAGS) PROGRAM-cjson = \#include \n +PROGRAM-cjson += \#include \n PROGRAM-cjson += \#include \n -PROGRAM-cjson += int main() { return cJSON_False; } +PROGRAM-cjson += int main() { double d = NAN; return cJSON_False; } CCFLAGS-cjson = -I$(dir $(MAKEFILE))src PROGRAM-system-cjson = $(PROGRAM-cjson) CCFLAGS-system-cjson = -lcjson