]> sourceware.org Git - newlib-cygwin.git/commitdiff
Revert "Cygwin: gendef generates sigfe.s and cygwin.def"
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 28 Oct 2020 15:31:27 +0000 (15:31 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Fri, 30 Oct 2020 16:31:08 +0000 (16:31 +0000)
This reverts commit 74a164f1c162645f4389bbd9edb2f89a630853af.

Shame we can't use '&:' for a grouped target here, since that requires
GNU make 4.3

winsup/cygwin/Makefile.in

index f6236d909468ff3b31bb7b50aac5c80b4a6b77cb..cb9924b3ac0d54c4f3cffd9f85df8eb62dbb582c 100644 (file)
@@ -783,13 +783,16 @@ $(VERSION_OFILES): version.cc
 Makefile: ${srcdir}/Makefile.in
        /bin/sh ./config.status
 
-$(DEF_FILE) sigfe.s: gendef $(srcdir)/$(TLSOFFSETS_H) $(DIN_FILE)
-       $(word 1,$^) --cpu=${target_cpu} --output-def=$(DEF_FILE) --tlsoffsets=$(word 2,$^) $(wordlist 3,4,$^)
+$(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 $@
 
 sigfe.s: $(DEF_FILE)
+       @[ -s $@ ] || \
+       { rm -f $(DEF_FILE); $(MAKE) -s -j1 $(DEF_FILE); }; \
+       [ -s $@ ] && touch $@
 
 sigfe.o: sigfe.s $(srcdir)/$(TLSOFFSETS_H)
        $(CC) ${CFLAGS} -c -o $@ $<
This page took 0.03196 seconds and 5 git commands to generate.