[newlib-cygwin/cygwin-3_3-branch] Cygwin: Makefile: add dependency to newlib's libs

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


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

commit e22eca84c49c638a13a63254d653b3da4a8ec5e1
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