summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-28 03:08:11 -0400
committermidipix <writeonce@midipix.org>2016-06-28 03:08:11 -0400
commitd2f54ca2ffb7e3d71e338ae980bda2a038adcfe0 (patch)
treefe8e1c70ba9add0e0099932418a7a98c87a4d42e /libc
parent837022c5cdb3d4c9a2f4e99d12e5ad77f59888dc (diff)
downloadcbb-gcc-4.6.4-d2f54ca2ffb7e3d71e338ae980bda2a038adcfe0.tar.bz2
cbb-gcc-4.6.4-d2f54ca2ffb7e3d71e338ae980bda2a038adcfe0.tar.xz
midipix targets: explicitly link --as-needed all runtime components.
Diffstat (limited to 'libc')
-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 " \