summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/cbb-musl-pe.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/libc/cbb-musl-pe.h b/libc/cbb-musl-pe.h
index 009f43db5..b2ee0ce8e 100644
--- a/libc/cbb-musl-pe.h
+++ b/libc/cbb-musl-pe.h
@@ -81,17 +81,19 @@ extern "C" {
" --as-needed -lntapi" \
" --as-needed -ldalist" \
" --as-needed -lpemagine}" \
- "%{!shared:%{mldso|mvrfs:" \
- " --as-needed -lldso}}"
+ "%{!shared:%{!static:%{mldso|mvrfs:" \
+ " --as-needed -lldso}}}"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "%R/lib/crti.o " \
"%{!shared:%{mposix:%R/lib/crtposix.o}} " \
"%{!shared:%{mdinga:%R/lib/crtdinga.o}} " \
- "%{!shared:%{mldso:%R/lib/crtldso.o}} " \
- "%{!shared:%{mvrfs:%R/lib/crtvrfs.o}} " \
- "%{!shared:%{!static:%{midata" \
- ":%R/lib/crtidata.o}}} " \
+ "%{!shared:%{!static:%{mldso:" \
+ "%R/lib/crtldso.o}}} " \
+ "%{!shared:%{!static:%{mvrfs:" \
+ "%R/lib/crtvrfs.o}}} " \
+ "%{!shared:%{!static:%{midata:" \
+ "%R/lib/crtidata.o}}} " \
"%{!shared:%R/lib/%{static:S}crt1.o} " \
"%{!shared:%{!mldso:%{!mvrfs:%{!midata:" \
"%{!static:%R/lib/crtidata.o}}}}} " \