diff --git a/mbedtls.changes b/mbedtls.changes index 3e060aa..c6bce91 100644 --- a/mbedtls.changes +++ b/mbedtls.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 15 16:00:07 UTC 2021 - Martin Pluskal + +- Workaround for building with gcc-11 boo#1181876 + ------------------------------------------------------------------- Mon Mar 22 15:54:07 UTC 2021 - Guillaume GARDET diff --git a/mbedtls.spec b/mbedtls.spec index 5e93e6f..942cc48 100644 --- a/mbedtls.spec +++ b/mbedtls.spec @@ -97,7 +97,10 @@ sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h %build %define __builder ninja +export CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized" +export CXXLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized" %cmake \ + -DUNSAFE_BUILD=ON \ -DLINK_WITH_PTHREAD=ON \ -DUSE_PKCS11_HELPER_LIBRARY=ON \ -DENABLE_ZLIB_SUPPORT=ON \