Building master (b10ddd2bd2bdce9ca8f2d4733636a9d9e7ac3da1):
0# x86_64-w64-mingw32-gcc (GCC) 12-win32
1./autogen.sh
2./configure --host=x86_64-w64-mingw32 CFLAGS="-flto" LDFLAGS="-flto"
3make -j9
4<snip>
5src/secp256k1.c: In function 'secp256k1_context_create':
6src/secp256k1.c:149:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
7 149 | }
8 | ^
9src/secp256k1.c: In function 'secp256k1_context_preallocated_clone':
10src/secp256k1.c:160:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
11 160 | }
12 | ^
13src/secp256k1.c: In function 'secp256k1_context_clone':
14src/secp256k1.c:173:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
15 173 | }
16 | ^
17src/secp256k1.c: In function 'secp256k1_context_preallocated_destroy':
18src/secp256k1.c:184:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
19 184 | }
20 | ^
21src/secp256k1.c: In function 'secp256k1_context_destroy':
22src/secp256k1.c:196:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
23 196 | }
24 | ^
25src/secp256k1.c: In function 'secp256k1_ec_pubkey_parse':
26src/secp256k1.c:288:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
27 288 | }
28 | ^
29src/secp256k1.c: In function 'secp256k1_ec_pubkey_serialize':
30src/secp256k1.c:311:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes]
31 311 | }
32 | ^
33< similar output continues>
Wanted to raise this, as Core may eventually go down the LTO route (https://github.com/bitcoin/bitcoin/pull/25391), and -flto
will be getting passed down.