summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-10-15 22:59:27 -0400
committermidipix <writeonce@midipix.org>2017-10-15 22:59:27 -0400
commit69cade0eb951106e88d9fab0f6c8427c12c25201 (patch)
tree3670caebf0750c52d40dd73b81b7bfb4ec012dcf
parent8e3f0b30c8c38b61b7cec038c9ad15bdce372d0c (diff)
downloadcbb-gcc-4.6.4-69cade0eb951106e88d9fab0f6c8427c12c25201.tar.bz2
cbb-gcc-4.6.4-69cade0eb951106e88d9fab0f6c8427c12c25201.tar.xz
midipix target: use crtidata.o|crtldso.o|crtvrfs.o only with dyn. linked apps.
-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}}}}} " \