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

Implement merging of static libraries via -lib on Posix too #4732

Open
kinke opened this issue Aug 11, 2024 · 0 comments
Open

Implement merging of static libraries via -lib on Posix too #4732

kinke opened this issue Aug 11, 2024 · 0 comments

Comments

@kinke
Copy link
Member

kinke commented Aug 11, 2024

On Posix, LDC currently puts .a inputs as-is into the generated .a, which generates invalid archives. This already works on Windows however.

Seems to be a PITA on Linux: https://stackoverflow.com/questions/3821916/how-to-merge-two-ar-static-libraries-into-one

Apple: https://stackoverflow.com/questions/8170450/combine-static-libraries-on-apple/8170851#8170851

Our by-default used internal driver/archiver.cpp is based on the llvm-ar tool, but heavily stripped down (~370 lines vs. 1.5k lines in https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-ar/llvm-ar.cpp); we probably need some extra stuff then.

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

No branches or pull requests

1 participant