Skip to content

librustc: add LLVM LDFLAGS to deps #12651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 2, 2014
Merged

librustc: add LLVM LDFLAGS to deps #12651

merged 2 commits into from
Mar 2, 2014

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Mar 2, 2014

This commit let librustc automatically pickup LDFLAGS dependencies
inherited from LLVM, which may otherwise result in undefined
references to external symbols under certain linking environment.

A symptom of this issue is eg. a failure when trying to link against
librustc (due to unresolved ffi_* symbols), while using a system-wide
LLVM.

Signed-off-by: Luca Bruno [email protected]

This commit let librustc automatically pickup LDFLAGS dependencies
inherited from LLVM, which may otherwise result in undefined
references to external symbols under certain linking environment.

A symptom of this issue is eg. a failure when trying to link against
librustc (due to unresolved ffi_*i symbols), while using a system-wide
LLVM.

Signed-off-by: Luca Bruno <[email protected]>
@alexcrichton
Copy link
Member

Can you try removing the RUSTFLAGS variable from .travis.yml?

I'm curious if travis will build fine with this change (I think it will)

Indirect dependencies should now be picked up through the
autogenerated llvmdeps.rs instead.

Signed-off-by: Luca Bruno <[email protected]>
@lucab
Copy link
Contributor Author

lucab commented Mar 2, 2014

Done. I'm quite sure this is ok for libffi, as I did a try for a debian package using the packaged llvm-3.3. However, I haven't seen ncurses errors so far.

bors added a commit that referenced this pull request Mar 2, 2014
This commit let librustc automatically pickup LDFLAGS dependencies
inherited from LLVM, which may otherwise result in undefined
references to external symbols under certain linking environment.

A symptom of this issue is eg. a failure when trying to link against
librustc (due to unresolved ffi_* symbols), while using a system-wide
LLVM.

Signed-off-by: Luca Bruno <[email protected]>
@bors bors closed this Mar 2, 2014
@bors bors merged commit 357cadf into rust-lang:master Mar 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants