Repository navigation
Commit 2769dc2
committed
Generate the test certificates once under parallel make
ca_cert.c, server_key.c and server_cert.c each had their own rule
running tools/certs/mkcerts.sh, and the script rewrites all of the cert
files. With make -j the three rules run at the same time, overwrite
each other's keys and certificates, and can leave server_cert.c without
server_der, so build/test-wolfssl fails to link with an undefined
reference to server_der. wolfSSL's cross-library CI hits this
intermittently.
One pattern rule now names all three files as targets, which GNU make
treats as a single recipe that writes all of them, so mkcerts.sh runs
once under -j and a missing file still triggers it. .SECONDARY keeps
the generated sources from being deleted as intermediates.1 parent f7cb8d7 commit 2769dc2
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1087 | 1088 | | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
| 1089 | + | |
1095 | 1090 | | |
1096 | 1091 | | |
1097 | 1092 | | |
| |||
0 commit comments