From 69cade0eb951106e88d9fab0f6c8427c12c25201 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Oct 2017 22:59:27 -0400 Subject: midipix target: use crtidata.o|crtldso.o|crtvrfs.o only with dyn. linked apps. --- libc/cbb-musl-pe.h | 14 ++++++++------ 1 file 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}}}}} " \ -- cgit v1.2.3