summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/cbb-musl-pe.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libc/cbb-musl-pe.h b/libc/cbb-musl-pe.h
index 17716651f..57efa2403 100644
--- a/libc/cbb-musl-pe.h
+++ b/libc/cbb-musl-pe.h
@@ -83,10 +83,14 @@ extern "C" {
CPP_SPEC_NTAPI
#undef LIB_SPEC
-#define LIB_SPEC "%{shared:-lc} " \
- "%{pthread:-lpthread} " \
- "--no-as-needed -lc " \
- "--as-needed -lpsxscl "
+#define LIB_SPEC "%{shared:-lc} " \
+ "%{pthread:-lpthread} " \
+ "--no-as-needed -lc " \
+ "--as-needed -lpsxscl " \
+ "%{static:" \
+ " --as-needed -lntapi" \
+ " --as-needed -ldalist" \
+ " --as-needed -lpemagine}"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%R/lib/crti.o " \