Skip to contentSkip to conversation

mbedtls: Add packageconfig for warning-as-errors

PATCH New Khem Raj 1 participant 1 message Jun 4, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 mbedtls: Add packageconfig for warning-as-errors

Disable the options by default, as we use different compilers there are more warnings to handle then upstream

---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_2.26.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-networking/recipes-connectivity/mbedtls/mbedtls_2.26.0.bb +1 -0
index 8c2457ce06..3c7df44513 100644
@@ -32,6 +32,7 @@ inherit cmake
 PACKAGECONFIG ??= "shared-libs programs"
 PACKAGECONFIG[shared-libs] = "-DUSE_SHARED_MBEDTLS_LIBRARY=ON,-DUSE_SHARED_MBEDTLS_LIBRARY=OFF"
 PACKAGECONFIG[programs] = "-DENABLE_PROGRAMS=ON,-DENABLE_PROGRAMS=OFF"
+PACKAGECONFIG[werror] = "-DMBEDTLS_FATAL_WARNINGS=ON,-DMBEDTLS_FATAL_WARNINGS=OFF"
 
 EXTRA_OECMAKE = "-DENABLE_TESTING=OFF -DLIB_INSTALL_DIR:STRING=${libdir}"
 
Signature · 1 line
2.31.1