| ... | @@ -721,6 +721,11 @@ void code_gen_link(CodeGen *g, const char *out_file) { | ... | @@ -721,6 +721,11 @@ void code_gen_link(CodeGen *g, const char *out_file) { |
| 721 | if (g->is_static) { | 721 | if (g->is_static) { |
| 722 | args.append("-static"); | 722 | args.append("-static"); |
| 723 | } | 723 | } |
| | 724 | if (getenv("ZIG_DEBIAN_HACK") != nullptr) { |
| | 725 | // XXX: hack. see https://github.com/andrewrk/zig/issues/1 |
| | 726 | args.append("-dynamic-linker"); |
| | 727 | args.append("/lib64/ld-linux-x86-64.so.2"); |
| | 728 | } |
| 724 | args.append("-o"); | 729 | args.append("-o"); |
| 725 | args.append(out_file); | 730 | args.append(out_file); |
| 726 | args.append((const char *)buf_ptr(&out_file_o)); | 731 | args.append((const char *)buf_ptr(&out_file_o)); |