mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
android-libboringssl: Use discarded-qualifiers that works with clang
clang names this -Wno-incompatible-pointer-types-discards-qualifiers; the GCC spelling is an unknown -W option under -Werror, which broke every configure try_compile (including pthread detection). Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -23,7 +23,12 @@ S = "${UNPACKDIR}/android-platform-external-boringssl-${PV}/src"
|
|||||||
|
|
||||||
inherit cmake
|
inherit cmake
|
||||||
|
|
||||||
CFLAGS:append = " -Wno-discarded-qualifiers"
|
# -Wno-discarded-qualifiers is a GCC spelling; clang names this warning
|
||||||
|
# -Wno-incompatible-pointer-types-discards-qualifiers. BoringSSL compiles with
|
||||||
|
# -Werror -Werror=unknown-warning-option, so an unknown -W option breaks every
|
||||||
|
# configure try_compile (including the pthread/Threads detection).
|
||||||
|
CFLAGS:append:toolchain-gcc = " -Wno-discarded-qualifiers"
|
||||||
|
CFLAGS:append:toolchain-clang = " -Wno-incompatible-pointer-types-discards-qualifiers"
|
||||||
|
|
||||||
OECMAKE_TARGET_COMPILE = "crypto ssl"
|
OECMAKE_TARGET_COMPILE = "crypto ssl"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user