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>
This commit is contained in:
		| @@ -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 \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Felix Fietkau
					Felix Fietkau