Browse Source

mbedtls: build with PIC

Fixes compilation with GCC12 and dependent packages for some reason.

Signed-off-by: Rosen Penev <[email protected]>
Rosen Penev 3 years ago
parent
commit
5dca7d7015
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/libs/mbedtls/Makefile

+ 1 - 0
package/libs/mbedtls/Makefile

@@ -91,6 +91,7 @@ TARGET_CFLAGS += -ffunction-sections -fdata-sections
 TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
 
 CMAKE_OPTIONS += \
+	-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
 	-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \
 	-DENABLE_TESTING:Bool=OFF \
 	-DENABLE_PROGRAMS:Bool=ON