From: Rosen Penev Date: Sat, 9 Jul 2022 03:50:44 +0000 (-0700) Subject: mbedtls: build with PIC X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5dca7d7015b0a013f4b5b4fcb3c9eca52755744a;p=openwrt%2Fstaging%2Fdedeckeh.git mbedtls: build with PIC Fixes compilation with GCC12 and dependent packages for some reason. Signed-off-by: Rosen Penev --- 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