Skip to content
Snippets Groups Projects
Commit 7df0069b authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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: default avatarFelix Fietkau <nbd@nbd.name>
parent adeae0e0
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,8 @@ endef ...@@ -48,6 +48,8 @@ endef
PKG_INSTALL:=1 PKG_INSTALL:=1
TARGET_CFLAGS += -ffunction-sections -fdata-sections
CMAKE_OPTIONS += \ CMAKE_OPTIONS += \
-DCMAKE_BUILD_TYPE:String="Release" \ -DCMAKE_BUILD_TYPE:String="Release" \
-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \ -DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment