Cygwin: move localtime.o build rule to end of file

otherwise a simple `make' in the cygwin dir won't build
the DLL anymore.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2020-05-25 13:45:17 +02:00
parent 63ff2b84ff
commit 2ce569ec92
1 changed files with 7 additions and 7 deletions

View File

@ -248,13 +248,6 @@ MATH_OFILES:= \
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:= \
advapi32.o \
aio.o \
@ -741,6 +734,13 @@ dcrt0.o sigproc.o: child_info_magic.h
shared.o: shared_info_magic.h
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 $@ $<
$(srcdir)/devices.cc: gendevices devices.in devices.h
${wordlist 1,2,$^} $@