Skip to content

Commit

Permalink
modules/json-c: set cmake build type as minsizerel
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
danielp96 committed Apr 6, 2023
1 parent 1cf7158 commit 46aa253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/json-c
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 46aa253

Please sign in to comment.