mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-10-11 19:56:37 +00:00
Add compiler flags necessary to build on Fedora
* Add compiler flags to the boringssl build step to suppress gcc errors raised when compiling with gcc 12+, which is present in Fedora. It is not clear whether this is a compiler bug or a boringssl bug, however the errors only appear when building in release mode and with gcc 12, so I don't see any problem with manually supressing them. * Add documentation for building on Fedora.
This commit is contained in:
+7
-1
@@ -184,7 +184,13 @@ boringssl/.patched: $(srcdir)/chrome/patches/boringssl-*.patch
|
||||
$(boringssl_static_libs): boringssl.zip boringssl/.patched
|
||||
mkdir -p $(boringssl_install_dir)
|
||||
cd $(boringssl_install_dir)
|
||||
@cmake@ -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=on -GNinja ..
|
||||
# The extra CMAKE_C_FLAGS are needed because otherwise boringssl fails to
|
||||
# compile in release mode on some systems with gcc 12 (e.g. Fedora).
|
||||
@cmake@ -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=on \
|
||||
-DCMAKE_C_FLAGS="-Wno-stringop-overflow -Wno-array-bounds" \
|
||||
-GNinja \
|
||||
..
|
||||
@ninja@
|
||||
# Fix the directory structure so that curl can compile against it.
|
||||
# See https://everything.curl.dev/source/build/tls/boringssl
|
||||
|
||||
Reference in New Issue
Block a user