patch-Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- w-tzdata-2021e-1.orig/Makefile 2021-09-25 16:47:39.000000000 +0200
  2. +++ w-tzdata-2021e-1/Makefile 2022-01-09 06:05:17.958089388 +0100
  3. @@ -370,7 +370,7 @@ GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fn
  4. # January's first Monday when a "%V" format is used and January 1
  5. # falls on a Friday, Saturday, or Sunday.
  6. -CFLAGS=
  7. +CFLAGS?=
  8. # Linker flags. Default to $(LFLAGS) for backwards compatibility
  9. # to release 2012h and earlier.
  10. @@ -385,7 +385,7 @@ LEAPSECONDS=
  11. # The zic command and its arguments.
  12. zic= ./zic
  13. -ZIC= $(zic) $(ZFLAGS)
  14. +ZIC= ./zic_for_build $(ZFLAGS)
  15. # To shrink the size of installed TZif files,
  16. # append "-r @N" to omit data before N-seconds-after-the-Epoch.
  17. @@ -562,7 +562,7 @@ SHELL= /bin/sh
  18. all: tzselect zic zdump libtz.a $(TABDATA) \
  19. vanguard.zi main.zi rearguard.zi
  20. -ALL: all date $(ENCHILADA)
  21. +ALL: zic_for_build date $(ENCHILADA)
  22. install: all $(DATA) $(REDO) $(MANS)
  23. mkdir -p '$(DESTDIR)$(BINDIR)' \
  24. @@ -637,6 +637,12 @@ zdump: $(TZDOBJS)
  25. zic: $(TZCOBJS)
  26. $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS)
  27. +zic_for_build: version.h
  28. + $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) zic.c -o zic_build.o
  29. + $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) localtime.c -o localtime_build.o
  30. + $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) asctime.c -o asctime_build.o
  31. + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ zic_build.o localtime_build.o asctime_build.o
  32. +
  33. leapseconds: $(LEAP_DEPS)
  34. $(AWK) -v EXPIRES_LINE=$(EXPIRES_LINE) \
  35. -f leapseconds.awk leap-seconds.list >$@.out