This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] Committed fix for PR target/37528
- From: "Danny Smith" <dansmister at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- Date: Mon, 22 Sep 2008 15:00:22 +1200
- Subject: [Patch] Committed fix for PR target/37528
Hello,
This fixes PR target/37528 by using the correct SHLIB_LC for cygwin and by
removing the unnecessary static objects (one of which is mingw-specific)
from the libgcc_s.dll import lib.
2008-09-22 Danny Smith <dannysmith@users.sourceforge.net>
PR target/37528
* config/i386/t-cygming (SHLIB_LC): Remove.
(SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
* config/i386/t-cygwin (SHLIB_LC): Specify all required
libraries.
Index: config/i386/t-cygming
===================================================================
--- config/i386/t-cygming (revision 140540)
+++ config/i386/t-cygming (working copy)
@@ -54,7 +54,6 @@
SHLIB_OBJS = @shlib_objs@
SHLIB_DIR = @multilib_dir@/shlib
SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
-SHLIB_LC = -luser32 -lkernel32 -ladvapi32 -lshell32
SHLIB_LINK = $(LN_S) $(SHLIB_MAP) $(SHLIB_MAP).def && \
if [ ! -d $(SHLIB_DIR) ]; then \
@@ -65,8 +64,6 @@
-Wl,--out-implib,$(SHLIB_DIR)/$(SHLIB_IMPLIB).tmp \
-o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \
$(SHLIB_OBJS) $(SHLIB_LC) && \
- $(AR_FOR_TARGET) -r $(SHLIB_DIR)/$(SHLIB_IMPLIB).tmp \
- _chkstk.o _ctors.o gthr-win32.o && \
if [ -f $(SHLIB_DIR)/$(SHLIB_SONAME) ]; then \
mv -f $(SHLIB_DIR)/$(SHLIB_SONAME) \
$(SHLIB_DIR)/$(SHLIB_SONAME).backup; \
Index: config/i386/t-cygwin
===================================================================
--- config/i386/t-cygwin (revision 140540)
+++ config/i386/t-cygwin (working copy)
@@ -15,4 +15,4 @@
$(srcdir)/config/i386/cygwin2.c
# Cygwin-specific parts of LIB_SPEC
-SHLIB_LC += -lcygwin
+SHLIB_LC = -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32