fix(sys): add /usr/local/lib to macOS linker search path for Rust 1.91+#403
Merged
Merged
Conversation
cf5b6da to
1f19802
Compare
Replace deprecated macos-13 and macos-14 runners with macos-15 (ARM64) and macos-15-intel (x86_64). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1f19802 to
ac74b01
Compare
Since Rust 1.91, /usr/local/lib is no longer searched automatically on macOS when linking. This causes build failures when libfdb_c.dylib is installed at the standard /usr/local/lib location. Explicitly add /usr/local/lib to the linker search path on macOS. References: - rust-lang/rust#131477 - rust-lang/rust#147010 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #381
Summary
macos-13/macos-14runners tomacos-15(ARM64) andmacos-15-intel(x86_64)ld: library 'fdb_c' not foundRoot Cause
Since Rust 1.91,
/usr/local/libis no longer automatically included in the linker search path on macOS. This breaks builds whenlibfdb_c.dylibis installed at/usr/local/lib.References:
cc, and pass it viaSDKROOTenv var rust-lang/rust#131477Fix
Explicitly add
/usr/local/libto the linker search path infoundationdb-sys/build.rson macOS.