mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
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:
parent
1cf7158e8e
commit
46aa2535ba
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user