[newlib-cygwin] Cygwin: Makefile: add dependency to newlib's libs

Corinna Vinschen corinna@sourceware.org
Wed Jan 12 11:03:59 GMT 2022


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

commit f574c30857aa10debf5dbb93a4fa0309226c5795
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Jan 12 11:45:54 2022 +0100

    Cygwin: Makefile: add dependency to newlib's libs
    
    We need deps to newlib's libc.a and libm.a, otherwise changes
    in newlib code don't trigger a rebuild of the Cygwin DLL.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index 24d749987..2b8e87fcd 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -623,7 +623,8 @@ $(LDSCRIPT): $(LDSCRIPT).in
 	$(CC) -E - -P < $^ -o $@
 
 # cygwin dll
-$(TEST_DLL_NAME): $(LDSCRIPT) dllfixdbg libdll.a $(VERSION_OFILES) $(LIBSERVER)
+$(TEST_DLL_NAME): $(LDSCRIPT) dllfixdbg libdll.a $(VERSION_OFILES) $(LIBSERVER)\
+		  $(newlib_build)/libm/libm.a $(newlib_build)/libc/libc.a
 	$(CXX) $(CXXFLAGS) \
 	-mno-use-libstdc-wrappers \
 	-Wl,--gc-sections -nostdlib -Wl,-T$(LDSCRIPT) -static \


More information about the Cygwin-cvs mailing list