diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 751627207..57fae5ee7 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2008-10-29 Christopher Faylor + + * Makefile.in (ALL_LDFLAGS): Link libgcc statically for everything + here. + 2008-10-12 Christopher Faylor * mingw: Set sawcfile when -xc* is detected. Extend list of detected diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in index 8d06cf2b9..9e3f8efdb 100644 --- a/winsup/utils/Makefile.in +++ b/winsup/utils/Makefile.in @@ -41,7 +41,7 @@ include $(srcdir)/../Makefile.common .PHONY: all install clean realclean warn_dumper warn_cygcheck_zlib ALL_LDLIBS := -lnetapi32 -ladvapi32 -ALL_LDFLAGS := -Wl,--enable-auto-import -B$(newlib_build)/libc -B$(w32api_lib) $(LDFLAGS) $(ALL_LDLIBS) +ALL_LDFLAGS := -static-libgcc -Wl,--enable-auto-import -B$(newlib_build)/libc -B$(w32api_lib) $(LDFLAGS) $(ALL_LDLIBS) ALL_DEP_LDLIBS := $(cygwin_build)/libcygwin.a ${patsubst -l%,\ $(w32api_lib)/lib%.a,$(ALL_LDLIBS) -lkernel32 -luser32}