From b4fe2529050331090841408139ff310640a40531 Mon Sep 17 00:00:00 2001 From: Julian Howes Date: Mon, 24 Nov 2025 12:07:28 +0100 Subject: [PATCH] Upgrade to BoringSSL 6d503ae1 1. Make the fips-boringssl-static profile point to BoringSSL commit 6d503ae1cf8b2e25162435225610b8c1f063d6f4, which is the latest revision that is available for download as a tarball from https://commondatastorage.googleapis.com/chromium-boringssl-fips 2. Update toolchain to clang-12 (required for compatibility with newer BoringSSL versions) 3. Remove CMAKE_POSITION_INDEPENDENT_CODE flag (flag seems redundant as BoringSSL manages PIC internally) 4. Fix bssl executable path (the bssl utility is now generated directly in the build directory rather than in a tool/ subdirectory) 5. Link with libdecrepit 6. Explicitly link with C++ standard library --- boringssl-static/pom.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/boringssl-static/pom.xml b/boringssl-static/pom.xml index 06512821..ed442984 100644 --- a/boringssl-static/pom.xml +++ b/boringssl-static/pom.xml @@ -119,11 +119,11 @@ ${project.build.directory}/boringssl-${boringsslBranch}/boringssl ${boringsslCheckoutDir}/build - 853ca1ea1168dff08011e5d42d94609cc0ca2e27 + 6d503ae1cf8b2e25162435225610b8c1f063d6f4 true ${boringsslCheckoutDir}/include - ${boringsslBuildDir} - ssl.lib;crypto.lib + ${boringsslBuildDir}/ssl;${boringsslBuildDir}/crypto;${boringsslBuildDir}/decrepit + ssl.lib;crypto.lib;decrepit.lib ${os.detected.arch} netty-tcnative-boringssl-static-fips @@ -236,10 +236,9 @@ - - - + + @@ -261,7 +260,7 @@ - + @@ -379,7 +378,7 @@ --libdir=${project.build.directory}/native-build/target/lib CFLAGS=-O3 -Werror -fno-omit-frame-pointer -fvisibility=hidden -Wunused -Wno-unused-value CPPFLAGS=-DHAVE_OPENSSL -I${boringsslCheckoutDir}/include - LDFLAGS=-L${boringsslBuildDir} -lssl -lcrypto + LDFLAGS=-L${boringsslBuildDir} -lssl -lcrypto -ldecrepit -lstdc++