[newlib-cygwin] Cygwin: statically link the tools in winsup/utils/mingw

Ken Brown kbrown@sourceware.org
Sat Sep 18 01:49:10 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9b0841aa789e74b6778744b89af76b60bd1a78bc

commit 9b0841aa789e74b6778744b89af76b60bd1a78bc
Author: Ken Brown <kbrown@cornell.edu>
Date:   Fri Sep 17 21:38:07 2021 -0400

    Cygwin: statically link the tools in winsup/utils/mingw
    
    This fixes the problem reported here:
    
      https://cygwin.com/pipermail/cygwin-developers/2021-September/012375.html

Diff:
---
 winsup/utils/mingw/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/utils/mingw/Makefile.am b/winsup/utils/mingw/Makefile.am
index c06562d9b..46d821313 100644
--- a/winsup/utils/mingw/Makefile.am
+++ b/winsup/utils/mingw/Makefile.am
@@ -18,6 +18,8 @@ include $(top_srcdir)/Makefile.am.common
 CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror -D_WIN32_WINNT=0x0a00 -DNTDDI_VERSION=WDK_NTDDI_VERSION
 AM_CXXFLAGS=-fno-exceptions -fno-rtti -fno-use-cxa-atexit $(flags_common) $(CFLAGS_COMMON)
 
+AM_LDFLAGS = -static
+
 bin_PROGRAMS = \
 	cygcheck \
 	cygwin-console-helper \


More information about the Cygwin-cvs mailing list