From d2f54ca2ffb7e3d71e338ae980bda2a038adcfe0 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 28 Jun 2016 03:08:11 -0400 Subject: midipix targets: explicitly link --as-needed all runtime components. --- libc/cbb-musl-pe.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libc') 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 " \ -- cgit v1.2.3