Hacker News new | ask | show | jobs
by formerly_proven 1575 days ago
> enabling you to target any version of glibc out of the box by building symbol mappings: https://github.com/ziglang/glibc-abi-tool/

This would be huge. How can I tell zig cc to use a particular glibc version though?

1 comments

For example:

zig cc -target x86_64-linux-gnu.2.28

That's very cool. While searching for it, I only found an older blog post where it said that internally it can do that, but there wasn't an option yet.

For anyone else trying this, it seems like Autotools/configure doesn't like CC with arguments, creating a wrapper script works though.