zoneinfo: Always produce fat zoneinfo files.

These aren't just needed for compatibility with i386 binaries (which need
the 32-bit section), but potentially also for compatibility with older
binaries on all platforms.

Sponsored by:	Klara, Inc.
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D38194
This commit is contained in:
Dag-Erling Smørgrav 2023-01-25 18:03:05 +01:00
parent 6fc1bbbf62
commit f1021d27f7
1 changed files with 4 additions and 5 deletions

View File

@ -77,11 +77,10 @@ all: zoneinfo
.endif
META_TARGETS+= zoneinfo install-zoneinfo
# On amd64, include 32-bit data for compatibility with statically-linked
# i386 binaries which still use a 32-bit time_t.
.if ${MACHINE_ARCH} == "amd64"
ZICFLAGS+= -b fat
.endif
#
# Produce “fat” zoneinfo files for backward compatibility.
#
ZICFLAGS?= -b fat
zoneinfo: ${TDATA}
mkdir -p ${TZBUILDDIR}