mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-06 21:56:00 +00:00
build: port to MinGW and fix symlink bugs
MinGW problem reported by Theo Veenker in <http://mm.icann.org/pipermail/tz/2013-September/020378.html>. The patched code should work even on POSIXish hosts where 'link' and 'symlink' fail for whatever reason, e.g., if the destination file system is VFAT. Also, the patch fixes some bugs when symlinks are used. * Makefile (CFLAGS): Mention HAVE_LINK in the comment. (TZDSRCS): Add asctime.o, since MinGW lacks asctime. (TZDOBJS): Add asctime.c. * private.h (HAVE_LINK): Default to 1. * zic.c (link) [!HAVE_LINK]: New macro. (symlink) [!HAVE_SYMLINK]: New macro. (dolink): Fix some bugs when 'link' fails but 'symlink' succeeds. Fall back on copying when both fail. * NEWS: Document the above.
This commit is contained in:
6
NEWS
6
NEWS
@@ -3,6 +3,12 @@ News for the tz database
|
||||
|
||||
Unreleased, experimental changes
|
||||
|
||||
Changes affecting 'zic'
|
||||
|
||||
'zic' now runs on platforms that lack both hard links and symlinks.
|
||||
(Thanks to Theo Veenker for reporting the problem, for MinGW.)
|
||||
Also, fix some bugs on platforms that lack hard links but have symlinks.
|
||||
|
||||
Changes affecting the build procedure
|
||||
|
||||
The 'leapseconds' file is again put into the tzdata tarball.
|
||||
|
||||
Reference in New Issue
Block a user