This was requested in https://github.com/hebasto/bitcoin/issues/221. The implementation follows the same approach as in https://github.com/hebasto/bitcoin/pull/93.
Here are a few excerpts from the summaries:
- Linux:
0Cross compiling ....................... FALSE
1Valgrind .............................. ON
2Preprocessor defined macros ........... ENABLE_MODULE_ELLSWIFT=1 ENABLE_MODULE_SCHNORRSIG=1 ENABLE_MODULE_EXTRAKEYS=1 ENABLE_MODULE_ECDH=1 ECMULT_WINDOW_SIZE=15 COMB_BLOCKS=11 COMB_TEETH=6 USE_ASM_X86_64=1 VALGRIND
3C compiler ............................ GNU 13.2.0, /usr/bin/cc
4CMAKE_BUILD_TYPE ...................... RelWithDebInfo
5C compiler flags ...................... -O2 -g -std=c90 -fPIC -fvisibility=hidden -pedantic -Wall -Wcast-align -Wcast-align=strict -Wextra -Wnested-externs -Wno-long-long -Wno-overlength-strings -Wno-unused-function -Wshadow -Wstrict-prototypes -Wundef
6Linker flags .......................... -fPIC -O2 -g -Wl,-soname,libsecp256k1.so.2
7
8NOTE: The summary above may not exactly match the final applied build flags
9 if any additional CMAKE_* or environment variables have been modified.
10 To see the exact flags applied, build with the --verbose option.
- Windows:
0Cross compiling ....................... FALSE
1Valgrind .............................. OFF
2Preprocessor defined macros ........... ENABLE_MODULE_ELLSWIFT=1 ENABLE_MODULE_SCHNORRSIG=1 ENABLE_MODULE_EXTRAKEYS=1 ENABLE_MODULE_ECDH=1 ECMULT_WINDOW_SIZE=15 COMB_BLOCKS=11 COMB_TEETH=6 _CRT_SECURE_NO_WARNINGS
3C compiler ............................ MSVC 19.40.33811.0, C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe
4Available build configurations ........ RelWithDebInfo, Release, Debug, MinSizeRel, Coverage
5Default build configuration ........... Debug
6
7'RelWithDebInfo' build configuration:
8 C compiler flags .................... /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /W3 /wd4146 /wd4244 /wd4267
9 Linker flags ........................ /machine:x64 /debug /INCREMENTAL
10
11'Release' build configuration:
12 C compiler flags .................... /DWIN32 /D_WINDOWS /O2 /Ob2 /W3 /wd4146 /wd4244 /wd4267
13 Linker flags ........................ /machine:x64 /INCREMENTAL:NO
14
15'Debug' build configuration:
16 C compiler flags .................... /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 /W3 /wd4146 /wd4244 /wd4267
17 Linker flags ........................ /machine:x64 /debug /INCREMENTAL
18
19'MinSizeRel' build configuration:
20 C compiler flags .................... /DWIN32 /D_WINDOWS /O1 /Ob1 /W3 /wd4146 /wd4244 /wd4267
21 Linker flags ........................ /machine:x64 /INCREMENTAL:NO
22
23'Coverage' build configuration:
24 C compiler flags .................... /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 -O0 -DCOVERAGE=1 --coverage /W3 /wd4146 /wd4244 /wd4267
25 Linker flags ........................ /machine:x64 /debug /INCREMENTAL --coverage
26
27NOTE: The summary above may not exactly match the final applied build flags
28 if any additional CMAKE_* or environment variables have been modified.
29 To see the exact flags applied, build with the --verbose option.