From 5dca7d7015b0a013f4b5b4fcb3c9eca52755744a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 8 Jul 2022 20:50:44 -0700 Subject: [PATCH] mbedtls: build with PIC Fixes compilation with GCC12 and dependent packages for some reason. Signed-off-by: Rosen Penev --- package/libs/mbedtls/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libs/mbedtls/Makefile b/package/libs/mbedtls/Makefile index 9c6c81d9c1..b6dc584403 100644 --- a/package/libs/mbedtls/Makefile +++ b/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 -- 2.30.2