Commit d6b2252
committed
Fix the macos cross build within the OCP builder image
Fix the cross-compilation issue without disabling CGO. The problem was
that the macOS SDK 10.15 in the builder image doesn't have the
SecTrustCopyCertificateChain symbol that Go 1.25's crypto/x509 package
requires (this API was introduced in macOS 12.0).
Use the -Wl,-undefined,dynamic_lookup linker flag for macOS
cross-compilation. This tells the linker to allow undefined symbols
that will be resolved at runtime.
The alternative would be to disable CGO.
Signed-off-by: Todd Short <[email protected]>
Assisted by: Claude Code1 parent 423abca commit d6b2252
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments