diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-07-08 20:50:44 -0700 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2022-07-17 13:43:48 +0200 |
commit | 5dca7d7015b0a013f4b5b4fcb3c9eca52755744a (patch) | |
tree | 92199c4d9069d4c645e7dcbd0ebc2434876ff402 | |
parent | e3a1d3ba15ed91a36c3e3bf33d3312800bdb46fc (diff) | |
download | upstream-5dca7d7015b0a013f4b5b4fcb3c9eca52755744a.tar.gz upstream-5dca7d7015b0a013f4b5b4fcb3c9eca52755744a.tar.bz2 upstream-5dca7d7015b0a013f4b5b4fcb3c9eca52755744a.zip |
mbedtls: build with PIC
Fixes compilation with GCC12 and dependent packages for some reason.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r-- | package/libs/mbedtls/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
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 |