From 46aa2535ba953d8abe3ef8548f0b7f419baa3743 Mon Sep 17 00:00:00 2001 From: Daniel Pineda Date: Thu, 6 Apr 2023 12:13:26 -0600 Subject: [PATCH] modules/json-c: set cmake build type as minsizerel By default json-c builds as debug instead of release. Adding CMAKE_BUILD_TYPE=minsizerel ensures it does not add debug info and also optimizes for file size. Signed-off-by: Daniel Pineda --- modules/json-c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/json-c b/modules/json-c index a3c14340..158e320f 100644 --- a/modules/json-c +++ b/modules/json-c @@ -28,7 +28,7 @@ json-c_configure := \ echo -e "$(toolchain_file)" | sed 's/\\//g' > toolchain && \ mkdir -p build && \ cd build && \ - cmake .. -DCMAKE_INSTALL_PREFIX="$(INSTALL)" -DCMAKE_TOOLCHAIN_FILE=../toolchain + cmake .. -DCMAKE_INSTALL_PREFIX="$(INSTALL)" -DCMAKE_TOOLCHAIN_FILE=../toolchain -DCMAKE_BUILD_TYPE=minsizerel json-c_target := \ $(CROSS_TOOLS) -C $(build)/$(json-c_dir)/build \