diff options
author | midipix <writeonce@midipix.org> | 2017-10-24 19:04:40 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-10-24 19:08:35 -0400 |
commit | c92bd819f194d35db6b4de1ca598d2c176fdcb0f (patch) | |
tree | 2d8532edd4710ff6875f5d22de4581e9dc8d352b | |
parent | 600e9edf8f0db8b903c67056485e82f606ae6575 (diff) | |
download | cbb-gcc-4.6.4-c92bd819f194d35db6b4de1ca598d2c176fdcb0f.tar.bz2 cbb-gcc-4.6.4-c92bd819f194d35db6b4de1ca598d2c176fdcb0f.tar.xz |
midipix targets: added the -mout-dsolib PE-specific directive.
-rw-r--r-- | gcc/config/i386/midipix.opt | 8 | ||||
-rw-r--r-- | gcc/config/i386/t-midipix | 4 | ||||
-rw-r--r-- | 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} " \ |