mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
add hook for environment variable ZIG_DEBIAN_HACK. see #1.
This commit is contained in:
parent
00a7936c9f
commit
bd5cb3e50e
1 changed files with 5 additions and 0 deletions
|
|
@ -721,6 +721,11 @@ void code_gen_link(CodeGen *g, const char *out_file) {
|
|||
if (g->is_static) {
|
||||
args.append("-static");
|
||||
}
|
||||
if (getenv("ZIG_DEBIAN_HACK") != nullptr) {
|
||||
// XXX: hack. see https://github.com/andrewrk/zig/issues/1
|
||||
args.append("-dynamic-linker");
|
||||
args.append("/lib64/ld-linux-x86-64.so.2");
|
||||
}
|
||||
args.append("-o");
|
||||
args.append(out_file);
|
||||
args.append((const char *)buf_ptr(&out_file_o));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue