[newlib-cygwin] Cygwin: Drop passing '-c' compiler flag into gentls_offsets

Jon TURNEY jturney@sourceware.org
Mon Nov 2 19:42:10 GMT 2020


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

commit 5f3a301fd5b5b7bbee3d04805ef24139d616b5ea
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Mon Oct 26 17:53:06 2020 +0000

    Cygwin: Drop passing '-c' compiler flag into gentls_offsets
    
    That script appends a '-E', since we only use $(CC) to preprocess, and
    thus adding '-c' is having no effect.

Diff:
---
 winsup/cygwin/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index 0add2320b..ec5d1efed 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -761,7 +761,7 @@ $(DEF_FILE): gendef $(srcdir)/$(TLSOFFSETS_H) $(DIN_FILE)
 	$(word 1,$^) --cpu=${target_cpu} --output-def=$@  --tlsoffsets=$(word 2,$^) $(wordlist 3,99,$^)
 
 $(srcdir)/$(TLSOFFSETS_H): gentls_offsets cygtls.h
-	$^ $@ $(target_cpu) $(COMPILE.cc) -c || rm $@
+	$^ $@ $(target_cpu) $(COMPILE.cc) || rm $@
 
 sigfe.s: $(DEF_FILE)
 	@[ -s $@ ] || \


More information about the Cygwin-cvs mailing list