File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,13 @@ set(SECP256K1_BUILD_EXHAUSTIVE_TESTS ${BUILD_TESTS} CACHE BOOL "" FORCE)
52
52
set (SECP256K1_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE )
53
53
include (GetTargetInterface )
54
54
# -fsanitize and related flags apply to both C++ and C,
55
- # so we can pass them down to libsecp256k1 as CFLAGS.
55
+ # so we can pass them down to libsecp256k1 as CFLAGS and LDFLAGS .
56
56
get_target_interface (core_sanitizer_cxx_flags "" sanitize_interface COMPILE_OPTIONS )
57
- set (SECP256K1_LATE_CFLAGS ${core_sanitizer_cxx_flags} CACHE STRING "" FORCE )
57
+ set (SECP256K1_APPEND_CFLAGS ${core_sanitizer_cxx_flags} CACHE STRING "" FORCE )
58
58
unset (core_sanitizer_cxx_flags )
59
+ get_target_interface (core_sanitizer_linker_flags "" sanitize_interface LINK_OPTIONS )
60
+ set (SECP256K1_APPEND_LDFLAGS ${core_sanitizer_linker_flags} CACHE STRING "" FORCE )
61
+ unset (core_sanitizer_linker_flags )
59
62
# We want to build libsecp256k1 with the most tested RelWithDebInfo configuration.
60
63
enable_language (C )
61
64
foreach (config IN LISTS CMAKE_BUILD_TYPE CMAKE_CONFIGURATION_TYPES )
You can’t perform that action at this time.
0 commit comments