[PATCH 1/3 v3] Cygwin: tzcode resync: basics

Jon Turney jon.turney@dronecode.org.uk
Tue May 26 15:11:03 GMT 2020


On 22/05/2020 10:32, Mark Geisert wrote:
> 
> diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
> index f273ba793..2ac8bcbd8 100644
> --- a/winsup/cygwin/Makefile.in
> +++ b/winsup/cygwin/Makefile.in
> @@ -27,7 +27,7 @@ export CCWRAP_HEADERS:=. ${srcdir}
>   export CCWRAP_SYSTEM_HEADERS:=@cygwin_headers@ @newlib_headers@
>   export CCWRAP_DIRAFTER_HEADERS:=@windows_headers@
>   
> -VPATH+=$(srcdir)/regex $(srcdir)/lib $(srcdir)/libc $(srcdir)/math
> +VPATH+=$(srcdir)/regex $(srcdir)/lib $(srcdir)/libc $(srcdir)/math $(srcdir)/tzcode
>   
>   target_cpu:=@target_cpu@
>   target_alias:=@target_alias@
> @@ -246,6 +246,15 @@ MATH_OFILES:= \
>   	tgammal.o \
>   	truncl.o
>   
> +TZCODE_OFILES:=localtime.o
> +
> +localtime.o: $(srcdir)/tzcode/localtime.cc $(srcdir)/tzcode/localtime.c.patch
> +	(cd $(srcdir)/tzcode && \
> +		patch -u -o localtime.c.patched localtime.c localtime.c.patch)
> +	$(CXX) ${CXXFLAGS} ${localtime_CFLAGS} \
> +		-I$(target_builddir)/winsup/cygwin \
> +		-I$(srcdir) -I$(srcdir)/tzcode -c -o $@ $<
> +
>   DLL_OFILES:= \

This adds 'patch' to the build-time requirements of Cygwin, which should 
probably be noted in the answer to faq.programming.building-cygwin in 
winsup/doc/faq-programming.xml.

(There's also some stuff in there about LSAs requirements which is 
stale, I think?)



More information about the Cygwin-patches mailing list