Skip to content
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

Specify RANLIB for android builds #69

Merged
merged 1 commit into from May 7, 2015
Merged

Conversation

@alexcrichton
Copy link
Contributor

alexcrichton commented May 7, 2015

When cross compiling from OSX to Android the build system for libpng would
otherwise invoke the system ranlib on an android-targeting archive. This
invocation would then corrupt the archive, preventing the compiler from working
with it.

By setting RANLIB to the android-specific ranlib tool the build system won't
corrupt the archive, allowing rustc to read it and continue processing it.

When cross compiling from OSX to Android the build system for libpng would
otherwise invoke the system `ranlib` on an android-targeting archive. This
invocation would then corrupt the archive, preventing the compiler from working
with it.

By setting `RANLIB` to the android-specific `ranlib` tool the build system won't
corrupt the archive, allowing rustc to read it and continue processing it.
@alexcrichton
Copy link
Contributor Author

alexcrichton commented May 7, 2015

cc @larsbergstrom

This fixes the ICE on OSX along the lines of Error { repr: Os(2) } at least in Servo's build. I may follow up with a patch to the compiler to produce a nicer error message!

larsbergstrom added a commit that referenced this pull request May 7, 2015
Specify RANLIB for android builds
@larsbergstrom larsbergstrom merged commit 34fca10 into servo:master May 7, 2015
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.