mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
lib/time: build with Ubuntu backward compatibility options
Change-Id: I7e241eb602e45eea3c730793c14d8a5f666f9181 Reviewed-on: https://go-review.googlesource.com/c/go/+/644077 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
290ec2d92b
commit
637c235b51
@ -40,7 +40,12 @@ curl -sS -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.t
|
|||||||
tar xzf tzcode$CODE.tar.gz
|
tar xzf tzcode$CODE.tar.gz
|
||||||
tar xzf tzdata$DATA.tar.gz
|
tar xzf tzdata$DATA.tar.gz
|
||||||
|
|
||||||
if ! make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo posix_only >make.out 2>&1; then
|
# The PACKRATLIST and PACKRATDATA options are copied from Ubuntu:
|
||||||
|
# https://git.launchpad.net/ubuntu/+source/tzdata/tree/debian/rules?h=debian/sid
|
||||||
|
#
|
||||||
|
# You can see the description of these make variables in the tzdata Makefile:
|
||||||
|
# https://github.com/eggert/tz/blob/main/Makefile
|
||||||
|
if ! make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo PACKRATDATA=backzone PACKRATLIST=zone.tab posix_only >make.out 2>&1; then
|
||||||
cat make.out
|
cat make.out
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user