authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-11-26 02:49:40-07:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-11-26 14:42:46-07:00
logbd5cb3e50e9f9a887cd23a24f8c766914a5c4496
treecddd5282153a953b624dbf621f8b39bdce857eb4
parent00a7936c9f80f780b4e1f215f323c90799335786

add hook for environment variable ZIG_DEBIAN_HACK. see #1.


1 files changed, 5 insertions(+), 0 deletions(-)

src/codegen.cpp+5
......@@ -721,6 +721,11 @@ void code_gen_link(CodeGen *g, const char *out_file) {
721721 if (g->is_static) {
722722 args.append("-static");
723723 }
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 }
724729 args.append("-o");
725730 args.append(out_file);
726731 args.append((const char *)buf_ptr(&out_file_o));