Skip to content

Reimplement ranlib in rust #763

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

Closed
bjorn3 opened this issue Oct 27, 2019 · 1 comment · Fixed by #1067
Closed

Reimplement ranlib in rust #763

bjorn3 opened this issue Oct 27, 2019 · 1 comment · Fixed by #1067
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@bjorn3
Copy link
Member

bjorn3 commented Oct 27, 2019

Necessary for cross compiling, as using the native ranlib causes problems when cross compiling between systems using GNU and BSD style ar archives.

@bjorn3 bjorn3 added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Oct 27, 2019
@bjorn3
Copy link
Member Author

bjorn3 commented Feb 1, 2020

For BSD the format of __.SYMDEF (at begin of archive) is:

First length of ranlib structures (8 bytes)
Then pairs of string table offset and offset from begin of archive to start of archive file containing symbol (each pair 8 bytes total)
Finally length of string table (8 bytes)

bjorn3 added a commit that referenced this issue Jul 15, 2020
This makes it possible to create rlibs for any target without installing
a toolchain for the target

Fixes #763
Fixes #869
bjorn3 added a commit that referenced this issue Jul 15, 2020
* Use builtin ranlib instead of running external ranlib

This makes it possible to create rlibs for any target without installing
a toolchain for the target

Fixes #763

* Disable builtin ranlib on macOS
bjorn3 added a commit that referenced this issue Jul 15, 2020
This makes it possible to create rlibs for any target without installing
a toolchain for the target

Fixes #763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant