Skip to content

rustbuild: fix cross compilation of libstd to i686-unknown-linux-musl #32078

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 7, 2016

Conversation

japaric
Copy link
Member

@japaric japaric commented Mar 6, 2016

  • make sure we copy the third party objects (crt*.o) to the target stage directory.
  • apply the x86_64-musl logic also to the i686-musl target.

r? @alexcrichton

- make sure we copy the third party objects (crt*.o) to the target stage directory.
- apply the x86_64-musl logic also to the i686-musl target.
@@ -111,7 +111,7 @@ fn main() {
println!("cargo:rustc-link-search=native={}/lib", build_dir.display());
if target.contains("android") {
println!("cargo:rustc-link-lib=gcc");
} else if !target.contains("windows") {
} else if !target.contains("windows") && !target.contains("musl") {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated logic to match non-rustbuild builds. See

#[cfg_attr(all(not(windows),
not(target_os = "android"),
not(target_env = "musl")),
link(name = "pthread"))]

@alexcrichton
Copy link
Member

Looks good to me, thanks @japaric!

r=me once libc is updated

@alexcrichton alexcrichton self-assigned this Mar 6, 2016
@japaric japaric changed the title [blocked] rustbuild: fix cross compilation of libstd to i686-unknown-linux-musl rustbuild: fix cross compilation of libstd to i686-unknown-linux-musl Mar 6, 2016
@japaric
Copy link
Member Author

japaric commented Mar 6, 2016

@bors: r=alexcrichton

@bors
Copy link
Collaborator

bors commented Mar 6, 2016

📌 Commit f164433 has been approved by alexcrichton

@bors
Copy link
Collaborator

bors commented Mar 7, 2016

⌛ Testing commit f164433 with merge 9fac71b...

@bors
Copy link
Collaborator

bors commented Mar 7, 2016

💔 Test failed - auto-mac-64-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

On Sun, Mar 6, 2016 at 10:54 PM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-64-nopt-t
http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/8321


Reply to this email directly or view it on GitHub
#32078 (comment).

@bors
Copy link
Collaborator

bors commented Mar 7, 2016

⌛ Testing commit f164433 with merge 2f34986...

bors added a commit that referenced this pull request Mar 7, 2016
- make sure we copy the third party objects (crt*.o) to the target stage directory.
- apply the x86_64-musl logic also to the i686-musl target.

---

r? @alexcrichton
@bors bors merged commit f164433 into rust-lang:master Mar 7, 2016
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