File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1266,6 +1266,17 @@ func (t *tester) registerCgoTests() {
1266
1266
}
1267
1267
}
1268
1268
1269
+ // Doing a static link with boringcrypto gets
1270
+ // a C linker warning on Linux.
1271
+ // in function `bio_ip_and_port_to_socket_and_addr':
1272
+ // warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
1273
+ if staticCheck .pre == nil && goos == "linux" && strings .Contains (goexperiment , "boringcrypto" ) {
1274
+ staticCheck .pre = func (* distTest ) bool {
1275
+ fmt .Println ("skipping static linking check on Linux when using boringcrypto to avoid C linker warning about getaddrinfo" )
1276
+ return false
1277
+ }
1278
+ }
1279
+
1269
1280
// Static linking tests
1270
1281
if goos != "android" && p != "netbsd/arm" {
1271
1282
// TODO(#56629): Why does this fail on netbsd-arm?
You can’t perform that action at this time.
0 commit comments