Skip to content

Commit

Permalink
Fix compilation on some configurations (#803)
Browse files Browse the repository at this point in the history
Motivation:

We need ignore a warning when compiling on some platforms when building BoringSSL as otherwise the compilation fails.

Modifications:

Adds -Wno-error=stringop-overflow flag to BoringSSL compilation so that
it starts working again on specific OS/architecture configuration.

Result:

Fixes #800
  • Loading branch information
morvael committed Jul 20, 2023
1 parent 327b9e2 commit 9edf0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boringssl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
<!-- On *nix, add ASM flags to disable executable stack -->
<property name="cmakeAsmFlags" value="-Wa,--noexecstack" />
<!-- Use -DOPENSSL_C11_ATOMIC so we replace most of the locking code with atomics-->
<property name="cmakeCFlags" value="-O3 -fno-omit-frame-pointer -DOPENSSL_C11_ATOMIC" />
<property name="cmakeCFlags" value="-O3 -fno-omit-frame-pointer -DOPENSSL_C11_ATOMIC -Wno-error=stringop-overflow" />
<!-- We need to define __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS when building boringssl on centos 6 -->
<property name="cmakeCxxFlags" value="-O3 -fno-omit-frame-pointer -Wno-error=maybe-uninitialized -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS" />
</then>
Expand Down

0 comments on commit 9edf0d6

Please sign in to comment.