mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
crossbuild: Make the CHECK_TIME variable work on Linux
Linux /usr/bin/find doesn't understand the -mtime -0s flag. Instead create a temporary file and compare that file's mtime to sys/sys/param.h to check whether the clock is correct. Reviewed By: jhb, imp Approved By: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D14157
This commit is contained in:
parent
fb1df20368
commit
95eff7c0c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328935
2
Makefile
2
Makefile
|
@ -352,7 +352,7 @@ _guard: .PHONY
|
|||
@false
|
||||
|
||||
STARTTIME!= LC_ALL=C date
|
||||
CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0s ; echo
|
||||
CHECK_TIME!= cmp=`mktemp`; find ${.CURDIR}/sys/sys/param.h -newer "$$cmp" && rm "$$cmp"; echo
|
||||
.if !empty(CHECK_TIME)
|
||||
.error check your date/time: ${STARTTIME}
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue