| ... | @@ -1293,6 +1293,10 @@ void code_gen_link(CodeGen *g, const char *out_file) { | ... | @@ -1293,6 +1293,10 @@ void code_gen_link(CodeGen *g, const char *out_file) { |
| 1293 | args.append("-static"); | 1293 | args.append("-static"); |
| 1294 | } | 1294 | } |
| 1295 | | 1295 | |
| | 1296 | if (g->out_type == OutTypeLib) { |
| | 1297 | zig_panic("TODO add ld commands for shared library"); |
| | 1298 | } |
| | 1299 | |
| 1296 | char *ZIG_NATIVE_DYNAMIC_LINKER = getenv("ZIG_NATIVE_DYNAMIC_LINKER"); | 1300 | char *ZIG_NATIVE_DYNAMIC_LINKER = getenv("ZIG_NATIVE_DYNAMIC_LINKER"); |
| 1297 | if (g->is_native_target && ZIG_NATIVE_DYNAMIC_LINKER) { | 1301 | if (g->is_native_target && ZIG_NATIVE_DYNAMIC_LINKER) { |
| 1298 | if (ZIG_NATIVE_DYNAMIC_LINKER[0] != 0) { | 1302 | if (ZIG_NATIVE_DYNAMIC_LINKER[0] != 0) { |