commit 6fbb6d188ef0215fefb06e39b9f1f2244cfcacb6
parent 1451e0fb438cfdeb1768b7acc3a502aabb53e13a
Author: Joris Vink <joris@coders.se>
Date: Mon, 25 Mar 2024 19:09:48 -0400
swap macos to dynamic_lookup for undefined.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cli.c b/src/cli.c
@@ -986,7 +986,7 @@ cli_ldflags(int argc, char **argv)
printf("%.*s ", (int)len, p);
#if defined(__MACH__)
- printf("-dynamiclib -undefined suppress -flat_namespace ");
+ printf("-dynamiclib -undefined dynamic_lookup -flat_namespace ");
#else
printf("-shared ");
#endif
@@ -2221,7 +2221,7 @@ cli_build_ldflags(struct buildopt *bopt)
if (bopt->single_binary == 0) {
#if defined(__MACH__)
cli_buf_appendf(bopt->ldflags,
- "-dynamiclib -undefined suppress -flat_namespace ");
+ "-dynamiclib -undefined dynamic_lookup -flat_namespace ");
#else
cli_buf_appendf(bopt->ldflags, "-shared ");
#endif