Skip to content

Commit 7bf7dfd

Browse files
authored
Merge pull request #1165 from AntelopeIO/bssl_no_dsym
[1.1.0] disable boringssl debug symbols on release builds; restore reproducible builds in CI
2 parents b3bf62e + bfd4301 commit 7bf7dfd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libraries/libfc/libraries/boringssl/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ target_compile_options(fipsmodule PRIVATE -Wno-error)
33
target_compile_options(crypto PRIVATE -Wno-error)
44
target_compile_options(decrepit PRIVATE -Wno-error)
55

6+
# boringssl's forced-on debug symbols interfere with reproducibility due to path differences; disable on Release builds
7+
if(CMAKE_BUILD_TYPE STREQUAL "Release")
8+
target_compile_options(fipsmodule PRIVATE -g0)
9+
target_compile_options(crypto PRIVATE -g0)
10+
target_compile_options(decrepit PRIVATE -g0)
11+
endif()
12+
613
#paranoia for when a dependent library depends on openssl (such as libcurl)
714
set_target_properties(fipsmodule PROPERTIES C_VISIBILITY_PRESET hidden)
815
set_target_properties(crypto PROPERTIES C_VISIBILITY_PRESET hidden)

0 commit comments

Comments
 (0)