Commit 157f3fc
fix(tikv): OPENSSL_STATIC=1 + restore RUSTFLAGS on top of gcc 12.3 pin
Previous iter (8c76a66 gcc 12.3 only) progressed the build from 35min
to 64min — got past the cargo compilation phase — but still failed at
the final link with the same `undefined reference to EVP_CIPHER_nid /
SSL_get_peer_certificate`. The bundled C++ inside librocksdb-sys
(encryption.cc) and grpcio-sys (ssl_transport_security.cc) needs ssl
& crypto symbols at link time but cargo's final link doesn't include
them.
OPENSSL_STATIC=1 tells openssl-sys to emit `-l static=ssl -l static=crypto`
which forces ld to include libssl.a/libcrypto.a wholesale (resolves
ordering issues with bundled .o objects). RUSTFLAGS retained as
belt-and-braces in case pkgx's openssl bottle doesn't ship static
archives.
This is the last variant left to try before parking; if it still
fails, the upstream link is genuinely incompatible with pantry's
toolchain layout and needs upstream-side work.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 1fcfa05 commit 157f3fc
1 file changed
Lines changed: 20 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| |||
0 commit comments