[openwrt/openwrt] mbedtls: build with PIC
LEDE Commits
lede-commits at lists.infradead.org
Sun Jul 17 05:46:38 PDT 2022
chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5dca7d7015b0a013f4b5b4fcb3c9eca52755744a
commit 5dca7d7015b0a013f4b5b4fcb3c9eca52755744a
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Fri Jul 8 20:50:44 2022 -0700
mbedtls: build with PIC
Fixes compilation with GCC12 and dependent packages for some reason.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
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
More information about the lede-commits
mailing list