diff options
author | Kai Tietz <ktietz@redhat.com> | 2012-11-30 09:09:02 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2012-11-30 09:09:02 +0100 |
commit | d71576d634a27eed6e34aee7abfd1b89d32d8949 (patch) | |
tree | 94de05d66c8dc90539c1e853e3c6723ea53df90d /gcc/config | |
parent | df9471b68dc9b43c13d140326a65dd66b5c914be (diff) | |
download | gcc-d71576d634a27eed6e34aee7abfd1b89d32d8949.zip gcc-d71576d634a27eed6e34aee7abfd1b89d32d8949.tar.gz gcc-d71576d634a27eed6e34aee7abfd1b89d32d8949.tar.bz2 |
mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with cygwin-host.
* config/i386/mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with
cygwin-host.
From-SVN: r193986
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/mingw32.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 0e3751f..2e32e53 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -121,15 +121,24 @@ along with GCC; see the file COPYING3. If not see /* Include in the mingw32 libraries with libgcc */ #ifdef ENABLE_SHARED_LIBGCC -#define SHARED_LIBGCC_SPEC "%{shared-libgcc:-lgcc_s} %{!shared-libgcc:-lgcc_eh}" +#define SHARED_LIBGCC_SPEC " \ + %{static|static-libgcc:-lgcc -lgcc_eh} \ + %{!static: \ + %{!static-libgcc: \ + %{!shared: \ + %{!shared-libgcc:-lgcc -lgcc_eh} \ + %{shared-libgcc:-lgcc_s -lgcc} \ + } \ + %{shared:-lgcc_s -lgcc} \ + } \ + } " #else -#define SHARED_LIBGCC_SPEC /*empty*/ +#define SHARED_LIBGCC_SPEC " -lgcc " #endif #undef REAL_LIBGCC_SPEC #define REAL_LIBGCC_SPEC \ "%{mthreads:-lmingwthrd} -lmingw32 \ "SHARED_LIBGCC_SPEC" \ - -lgcc \ -lmoldname -lmingwex -lmsvcrt" #undef STARTFILE_SPEC |