OSDN Git Service

PR target/37528
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Sep 2008 02:56:50 +0000 (02:56 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Sep 2008 02:56:50 +0000 (02:56 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140541 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/t-cygming
gcc/config/i386/t-cygwin

index 195457c..eb2fa8a 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
 
        PR middle-end/37170
index c6e6cac..ecfe2d1 100644 (file)
@@ -54,7 +54,6 @@ SHLIB_MAP = @shlib_map_file@
 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 @@ SHLIB_LINK = $(LN_S) $(SHLIB_MAP) $(SHLIB_MAP).def && \
        -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 3715c0b..7433138 100644 (file)
@@ -15,4 +15,4 @@ cygwin2.o: $(srcdir)/config/i386/cygwin2.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
        $(srcdir)/config/i386/cygwin2.c
 
 # Cygwin-specific parts of LIB_SPEC
-SHLIB_LC += -lcygwin
+SHLIB_LC = -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32