mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
mbedtls: build with PIC
Fixes compilation with GCC12 and dependent packages for some reason. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
e3a1d3ba15
commit
5dca7d7015
@ -91,6 +91,7 @@ TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
|||||||
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
|
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \
|
-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \
|
||||||
-DENABLE_TESTING:Bool=OFF \
|
-DENABLE_TESTING:Bool=OFF \
|
||||||
-DENABLE_PROGRAMS:Bool=ON
|
-DENABLE_PROGRAMS:Bool=ON
|
||||||
|
Loading…
Reference in New Issue
Block a user