timezone.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --- toolchain_build_i686_eglibc/w-eglibc-2.16-1/eglibc-2.16/libc/timezone/Makefile 2012-07-31 08:58:48.000000000 +0200
  2. +++ toolchain_build_i686_glibc/w-glibc-2.16.0-1/glibc-2.16.0/timezone/Makefile 2012-06-30 21:12:34.000000000 +0200
  3. @@ -52,16 +52,7 @@
  4. include ../Rules
  5. -zic-objs = zic.o ialloc.o scheck.o
  6. -
  7. -$(objpfx)zic: $(addprefix $(objpfx), $(zic-objs))
  8. -
  9. -$(addprefix $(objpfx)cross-,$(zic-objs)): $(objpfx)cross-%.o: %.c
  10. - $(BUILD_CC) $< -c $(OUTPUT_OPTION) $(CFLAGS-$*.c) $(CPPFLAGS-$*) \
  11. - -DCROSS_ZIC $(compile-mkdep-flags)
  12. -
  13. -$(objpfx)cross-zic: $(addprefix $(objpfx)cross-,$(zic-objs))
  14. - $(BUILD_CC) $(addprefix $(objpfx)cross-,$(zic-objs)) -o $@
  15. +$(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o
  16. tz-cflags = -DTZDIR='"$(zonedir)"' \
  17. -DTZDEFAULT='"$(localtime-file)"' \
  18. @@ -78,17 +69,10 @@
  19. # Don't add leapseconds here since test-tz made checks that work only without
  20. # leapseconds.
  21. testdata = $(objpfx)testdata
  22. -ifeq (no,$(cross-compiling))
  23. define build-testdata
  24. GCONV_PATH=${common-objpfx}iconvdata LANGUAGE=C LC_ALL=C \
  25. $(built-program-cmd) -d $(testdata) -y ./yearistype $<
  26. endef
  27. -else
  28. -define build-testdata
  29. -LANGUAGE=C LC_ALL=C \
  30. - $(objpfx)cross-zic -d $(testdata) -y ./yearistype $<
  31. -endef
  32. -endif
  33. $(objpfx)test-tz.out: $(addprefix $(testdata)/, America/New_York Etc/UTC UTC)
  34. $(objpfx)tst-timezone.out: $(addprefix $(testdata)/, \
  35. @@ -101,11 +85,7 @@
  36. tst-timezone-ENV = TZDIR=$(testdata)
  37. # Note this must come second in the deps list for $(built-program-cmd) to work.
  38. -ifeq (no,$(cross-compiling))
  39. zic-deps = $(objpfx)zic $(leapseconds) yearistype
  40. -else
  41. -zic-deps = $(objpfx)cross-zic $(objpfx)zic $(leapseconds) yearistype
  42. -endif
  43. $(testdata)/America/New_York: northamerica $(zic-deps)
  44. $(build-testdata)
  45. @@ -127,8 +107,6 @@
  46. $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
  47. sed -e 's%@KSH@%$(KSH)%g' \
  48. - -e 's%@TZDIR@%$(zonedir)%g' \
  49. - -e 's%@PKGVERSION@%$(PKGVERSION)%g' \
  50. - -e 's%@REPORT_BUGS_TO@%$(REPORT_BUGS_TO)%g' < $< > $@.new
  51. + -e 's%@TZDIR@%$(zonedir)%g' < $< > $@.new
  52. chmod 555 $@.new
  53. mv -f $@.new $@