build: port to Solaris 10

* src/local.mk (src_ln_LDADD, src_mktemp_LDADD, src_tac_LDADD):
Add $(LIB_CLOCK_GETTIME), since these use tempname which uses
clock_gettime if getrandom fails.  On platforms like Solaris 10,
clock_gettime is not in the standard C library.
This commit is contained in:
Paul Eggert 2020-11-21 13:18:55 -08:00
parent 4c667a86d3
commit 5c8e2716b3

View File

@ -250,12 +250,15 @@ src_stat_LDADD += $(LIB_SELINUX)
# for nvlist_lookup_uint64_array # for nvlist_lookup_uint64_array
src_stat_LDADD += $(LIB_NVPAIR) src_stat_LDADD += $(LIB_NVPAIR)
# for gettime, settime, utimecmp, utimens # for gettime, settime, tempname, utimecmp, utimens
copy_ldadd += $(LIB_CLOCK_GETTIME) copy_ldadd += $(LIB_CLOCK_GETTIME)
src_date_LDADD += $(LIB_CLOCK_GETTIME) src_date_LDADD += $(LIB_CLOCK_GETTIME)
src_ginstall_LDADD += $(LIB_CLOCK_GETTIME) src_ginstall_LDADD += $(LIB_CLOCK_GETTIME)
src_ln_LDADD += $(LIB_CLOCK_GETTIME)
src_ls_LDADD += $(LIB_CLOCK_GETTIME) src_ls_LDADD += $(LIB_CLOCK_GETTIME)
src_mktemp_LDADD += $(LIB_CLOCK_GETTIME)
src_pr_LDADD += $(LIB_CLOCK_GETTIME) src_pr_LDADD += $(LIB_CLOCK_GETTIME)
src_tac_LDADD += $(LIB_CLOCK_GETTIME)
src_timeout_LDADD += $(LIB_TIMER_TIME) src_timeout_LDADD += $(LIB_TIMER_TIME)
src_touch_LDADD += $(LIB_CLOCK_GETTIME) src_touch_LDADD += $(LIB_CLOCK_GETTIME)