diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2017-03-26 18:50:38 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2017-03-26 18:50:38 +0000 |
commit | c35ac55f5d5ad9cd8d6c536e8c320ffc057a7e63 (patch) | |
tree | 41a5a8774fee018d200dce6d902d13f48c588d08 /share | |
parent | b7b97a995d89083783fbdddb11e31f3c1fb8cffd (diff) |
The support in 'ar' for 'D'eterministic builds has been in for weeks,
so start using it to make archives (mostly) detereministic for syspatch
ok millert@ deraadt@ kettenis@
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.lib.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 44571bc05d0..aced31fcfb0 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.lib.mk,v 1.79 2016/11/08 19:04:49 natano Exp $ +# $OpenBSD: bsd.lib.mk,v 1.80 2017/03/26 18:50:37 guenther Exp $ # $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $ # @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 @@ -169,14 +169,14 @@ OBJS+= ${SRCS:N*.h:R:S/$/.o/} lib${LIB}.a: ${OBJS} @echo building standard ${LIB} library @rm -f lib${LIB}.a - @${AR} cq lib${LIB}.a `${LORDER} ${OBJS} | tsort -q` + @${AR} cqD lib${LIB}.a `${LORDER} ${OBJS} | tsort -q` ${RANLIB} lib${LIB}.a POBJS+= ${OBJS:.o=.po} lib${LIB}_p.a: ${POBJS} @echo building profiled ${LIB} library @rm -f lib${LIB}_p.a - @${AR} cq lib${LIB}_p.a `${LORDER} ${POBJS} | tsort -q` + @${AR} cqD lib${LIB}_p.a `${LORDER} ${POBJS} | tsort -q` ${RANLIB} lib${LIB}_p.a SOBJS+= ${OBJS:.o=.so} @@ -190,7 +190,7 @@ ${FULLSHLIBNAME}.a: ${SOBJS} @echo building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\) ar @rm -f ${.TARGET} @echo ${PICFLAG} ${LDADD} > .ldadd - ar cq ${FULLSHLIBNAME}.a ${SOBJS} .ldadd ${SYMBOLSMAP} + ar cqD ${FULLSHLIBNAME}.a ${SOBJS} .ldadd ${SYMBOLSMAP} # all .do files... DOBJS+= ${OBJS:.o=.do} @@ -207,9 +207,9 @@ ${DIST_LIB}: ${SELECTED_DOBJS} @echo building distrib ${DIST_LIB} library from ${SELECTED_DOBJS} @rm -f ${DIST_LIB} .if !empty(SELECTED_DOBJS) - @${AR} cq ${DIST_LIB} `${LORDER} ${SELECTED_DOBJS} | tsort -q` + @${AR} cqD ${DIST_LIB} `${LORDER} ${SELECTED_DOBJS} | tsort -q` .else - @${AR} cq ${DIST_LIB} + @${AR} cqD ${DIST_LIB} .endif ${RANLIB} ${DIST_LIB} |