Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.lib.mk,v retrieving revision 1.295 retrieving revision 1.295.2.1 diff -u -p -r1.295 -r1.295.2.1 --- src/share/mk/bsd.lib.mk 2009/01/17 12:09:58 1.295 +++ src/share/mk/bsd.lib.mk 2009/05/13 19:19:16 1.295.2.1 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.295 2009/01/17 12:09:58 he Exp $ +# $NetBSD: bsd.lib.mk,v 1.295.2.1 2009/05/13 19:19:16 jym Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -438,21 +438,32 @@ _YLSRCS= ${SRCS:M*.[ly]:C/\..$/.c/} ${YH realall: ${SRCS} ${ALLOBJS:O} ${_LIBS} +MKARZERO?=no + +.if ${MKARZERO} == "yes" +_ARFL=crsD +_ARRANFL=sD +_INSTRANLIB= +.else +_ARFL=crs +_ARRANFL=s +_INSTRANLIB=${empty(PRESERVE):?-a "${RANLIB} -t":} +.endif + # If you change this, please consider reflecting the change in # the override in sys/rump/Makefile.rump. .if !target(__archivebuild) __archivebuild: .USE ${_MKTARGET_BUILD} rm -f ${.TARGET} - ${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}` - ${RANLIB} ${.TARGET} + ${AR} ${_ARFL} ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}` .endif .if !target(__archiveinstall) __archiveinstall: .USE ${_MKTARGET_INSTALL} ${INSTALL_FILE} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ - ${empty(PRESERVE):?-a "${RANLIB} -t":} ${.ALLSRC} ${.TARGET} + ${_INSTRANLIB} ${.ALLSRC} ${.TARGET} .endif __archivesymlinkpic: .USE @@ -722,6 +733,9 @@ ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .endif # !target(libinstall) # } ##### Pull in related .mk logic +LINKSOWN?= ${LIBOWN} +LINKSGRP?= ${LIBGRP} +LINKSMODE?= ${LIBMODE} .include .include .include