]> git.proxmox.com Git - mirror_edk2.git/commit - CryptoPkg/Library/OpensslLib/OpensslLib.inf
CryptoPkg CLANG35: add -std=c99 to dodge OpenSSL C atomics issue
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 3 Jun 2019 16:19:41 +0000 (18:19 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 3 Jun 2019 16:33:53 +0000 (18:33 +0200)
commitf03859ea6c8fddeaa3a5cc3d9a3461728ce538aa
tree55de49ef0417e0603206ec0c35091c66b6f0e393
parentacfb90911840c38a0beb9bcfe0065668244d2b4d
CryptoPkg CLANG35: add -std=c99 to dodge OpenSSL C atomics issue

Commit c51f8bae7cabe ("CryptoPkg: Fix possible build problem with
Clang") added -std=c99 to the CLANG38 compiler command line of
packages that incorporate parts of OpenSSL, to ensure that the new
C atomics code used by OpenSSL for refcounting (which we don't care
about) does not pull in system C library headers, which we cannot
rely on when (cross)building EDK2 code.

Unsurprisingly, CLANG35 (which is only defined for ARM and AARCH64)
suffers from the exact same issue, so let's add the same flags
there as well.

Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
CryptoPkg/Library/OpensslLib/OpensslLib.inf
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf