Commit 06570b4
committed
fix(examples): scope macOS frameworks to darwin in cgo LDFLAGS
The go-demo cgo LDFLAGS hardcoded `-framework CoreFoundation
-framework Security`, which only exist on macOS. On the Linux CI
runner gcc rejects `-framework`, breaking the examples build. Move
those flags to a `#cgo darwin LDFLAGS` line so Linux links with just
the portable flags while macOS still pulls the frameworks the Rust
staticlib needs transitively.
Signed-off-by: Frederico Araujo <frederico.araujo@ibm.com>1 parent 9640ce1 commit 06570b4
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
0 commit comments