mbedtls: add --function-sections and --data-sections to CFLAGS

This allows binaries that links these libraries statically to be reduced
by using --gc-sections on link

Signed-off-by: Felix Fietkau <nbd@nbd.name>
lede-17.01
Felix Fietkau 2017-02-21 14:33:14 +01:00 committed by Jo-Philipp Wich
parent e3021e0308
commit 2e8545333a
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ endef
PKG_INSTALL:=1
TARGET_CFLAGS += -ffunction-sections -fdata-sections
CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE:String="Release" \
-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \