From c92bd819f194d35db6b4de1ca598d2c176fdcb0f Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 24 Oct 2017 19:04:40 -0400 Subject: midipix targets: added the -mout-dsolib PE-specific directive. --- gcc/config/i386/midipix.opt | 8 ++++++-- gcc/config/i386/t-midipix | 4 ++-- libc/cbb-musl-pe.h | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/config/i386/midipix.opt b/gcc/config/i386/midipix.opt index 4cf16dca4..541e3cab8 100644 --- a/gcc/config/i386/midipix.opt +++ b/gcc/config/i386/midipix.opt @@ -2,7 +2,7 @@ ;; ;; ;; midipix target directives ;; ;; ;; -;; Copyright (C) 2014,2015 Z. Gilboa ;; +;; Copyright (C) 2014--2017 Z. Gilboa ;; ;; ;; ;; This program is free software: you can redistribute it and/or modify ;; ;; it under the terms of the GNU General Public License as published by ;; @@ -27,9 +27,13 @@ mposix Target always join or create a posix session +mout-dsolib +Target +upon linking the dynamic library foo.so, generate an accompanying custom (.dsometa) import library foo.lib.a + mout-implib Target -upon linking the dynamic library foo.so, generate an accompanying import library foo.lib.a +upon linking the dynamic library foo.so, generate an accompanying legacy (.idata) import library foo.lib.a moutput-def Target diff --git a/gcc/config/i386/t-midipix b/gcc/config/i386/t-midipix index 0a05c343f..56e29c484 100644 --- a/gcc/config/i386/t-midipix +++ b/gcc/config/i386/t-midipix @@ -2,7 +2,7 @@ ## ## ## midipix target-specific build recipes ## ## ## -## Copyright (C) 2014,2015 Z. Gilboa ## +## Copyright (C) 2014--2017 Z. Gilboa ## ## ## ## This program is free software: you can redistribute it and/or modify ## ## it under the terms of the GNU General Public License as published by ## @@ -69,7 +69,7 @@ SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver SHLIB_LINK = $(GCC_FOR_TARGET) \ $(LIBGCC2_CFLAGS) \ - -shared -mout-implib \ + -shared -mout-dsolib \ -nodefaultlibs \ -o $(SHLIB_DIR)/$(SHLIB_SONAME) \ $(SHLIB_OBJS) \ diff --git a/libc/cbb-musl-pe.h b/libc/cbb-musl-pe.h index 759db87b8..38976ee6e 100644 --- a/libc/cbb-musl-pe.h +++ b/libc/cbb-musl-pe.h @@ -128,6 +128,8 @@ extern "C" { "--output-def %{o*:%.so.def%*}}} " \ "%{shared:%{mout-implib:" \ "--out-implib %{o*:%.lib.a%*}}} " \ + "%{shared:%{mout-dsolib:" \ + "--out-dsolib %{o*:%.lib.a%*}}} " \ "%{!shared:--entry _start} " \ "%{!shared:--image-base 0x1920000} " \ "%{shared:--entry __so_entry_point} " \ -- cgit v1.2.3