1 diff --git a/src/libponyc/codegen/genexe.c b/src/libponyc/codegen/genexe.c
2 index 9ae3ff16..fdfe2bc5 100644
3 --- a/src/libponyc/codegen/genexe.c
4 +++ b/src/libponyc/codegen/genexe.c
5 @@ -296,10 +296,10 @@ static bool link_exe(compile_t* c, ast_t* program,
6 char* ld_cmd = (char*)ponyint_pool_alloc_size(ld_len);
8 snprintf(ld_cmd, ld_len,
9 - "%s -execute -arch %.*s "
12 - "-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem %s -platform_version macos '" STR(PONY_OSX_PLATFORM) "' '0.0.0'",
13 - linker, (int)arch_len, c->opt->triple, file_exe, file_o,
14 + "-L@libSystem@/lib -lSystem %s -platform_version macos '" STR(PONY_OSX_PLATFORM) "' '0.0.0'",
15 + linker, file_exe, file_o,
16 lib_args, ponyrt, sanitizer_arg