Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / compilers / ponyc / fix-darwin-build.patch
blob2570145da8dea648b19a5346c613625d18e8c222
1 diff --git a/src/libponyc/codegen/genexe.c b/src/libponyc/codegen/genexe.c
2 index 42a68251..b37958ab 100644
3 --- a/src/libponyc/codegen/genexe.c
4 +++ b/src/libponyc/codegen/genexe.c
5 @@ -296,13 +296,13 @@ static bool link_exe(compile_t* c, ast_t* program,
7 snprintf(ld_cmd, ld_len,
8 #if defined(PLATFORM_IS_ARM)
9 - "%s -execute -arch %.*s "
10 + "%s -execute "
11 #else
12 - "%s -execute -no_pie -arch %.*s "
13 + "%s -execute -no_pie "
14 #endif
15 "-o %s %s %s %s "
16 - "-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem %s",
17 - linker, (int)arch_len, c->opt->triple, file_exe, file_o,
18 + "-L@libSystem@/lib -lSystem %s",
19 + linker, file_exe, file_o,
20 lib_args, ponyrt, sanitizer_arg