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 <daniel.pineda@puri.sm>
This commit is contained in:
Daniel Pineda 2023-04-06 12:13:26 -06:00
parent 1cf7158e8e
commit 46aa2535ba
No known key found for this signature in database
GPG Key ID: 902C199C68C4B327

View File

@ -28,7 +28,7 @@ json-c_configure := \
echo -e "$(toolchain_file)" | sed 's/\\//g' > toolchain && \ echo -e "$(toolchain_file)" | sed 's/\\//g' > toolchain && \
mkdir -p build && \ mkdir -p build && \
cd 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 := \ json-c_target := \
$(CROSS_TOOLS) -C $(build)/$(json-c_dir)/build \ $(CROSS_TOOLS) -C $(build)/$(json-c_dir)/build \