diff options
Diffstat (limited to 'libc/cbb-musl-pe.h')
-rw-r--r-- | libc/cbb-musl-pe.h | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/libc/cbb-musl-pe.h b/libc/cbb-musl-pe.h index bb5c8b794..5f9dbf05a 100644 --- a/libc/cbb-musl-pe.h +++ b/libc/cbb-musl-pe.h @@ -64,28 +64,12 @@ extern "C" { #undef CPP_SPEC_LDSO #define CPP_SPEC_LDSO "%{mldso:-D_LDSO} " -#undef CPP_SPEC_LDSO_ABSOLUTE_PATH -#define CPP_SPEC_LDSO_ABSOLUTE_PATH "%{mldso-absolute-path:-D_LDSO -D_LDSO_ABSOLUTE_PATH} " - -#undef CPP_SPEC_LDSO_DEFAULT_PATH -#define CPP_SPEC_LDSO_DEFAULT_PATH "%{mldso-default-path:-D_LDSO -D_LDSO_DEFAULT_PATH} " - -#undef CPP_SPEC_LDSO_APP_DIR_ONLY -#define CPP_SPEC_LDSO_APP_DIR_ONLY "%{mldso-app-dir-only:-D_LDSO -D_LDSO_APP_DIR_ONLY} " - -#undef CPP_SPEC_LDSO_KERNEL_DRIVER -#define CPP_SPEC_LDSO_KERNEL_DRIVER "%{mldso-kernel-driver:-D_LDSO -D_LDSO_KERNEL_DRIVER} " - #undef CPP_SPEC_NTAPI #define CPP_SPEC_NTAPI "%{mntapi:-ffreestanding} " #undef CPP_SPEC #define CPP_SPEC CPP_SPEC_POSIX \ CPP_SPEC_LDSO \ - CPP_SPEC_LDSO_ABSOLUTE_PATH \ - CPP_SPEC_LDSO_DEFAULT_PATH \ - CPP_SPEC_LDSO_APP_DIR_ONLY \ - CPP_SPEC_LDSO_KERNEL_DRIVER \ CPP_SPEC_NTAPI #undef LIB_SPEC @@ -100,21 +84,10 @@ extern "C" { #undef STARTFILE_SPEC #define STARTFILE_SPEC "%R/lib/crti.o " \ - "%{!shared:%{" \ - "mldso" \ - "|mldso-absolute-path" \ - "|mldso-default-path" \ - "|mldso-app-dir-only" \ - "|mldso-root-relative" \ - "|mldso-kernel-driver" \ - ":%R/lib/crtldso.o}} " \ - "%{!shared:%R/lib/%{" \ - "mldso-absolute-path:crtldsoa.o;" \ - "mldso-default-path:crtldsod.o;" \ - "mldso-app-dir-only:crtldson.o;" \ - "mldso-root-relative:crtldsor.o;" \ - "mldso-kernel-driver:crtldsok.o;" \ - ":%{static:S}crt1.o}} " \ + "%{!shared:" \ + "%{mldso:%R/lib/crtldso.o}} " \ + "%{!shared:%R/lib/" \ + "%{static:S}crt1.o}} " \ "%{!shared:%{mposix:%R/lib/crtposix.o}} " \ "%{!shared:%{mtty-console:%R/lib/crtdev.o}} " \ "%{shared:%R/lib/crte.o} " \ |