Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2014 14:25:44 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r270484 - in stable/10: gnu/lib/libgcc share/mk
Message-ID:  <201408241425.s7OEPiqN037544@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Sun Aug 24 14:25:44 2014
New Revision: 270484
URL: http://svnweb.freebsd.org/changeset/base/270484

Log:
  MFH (r264367): add RANLIBFLAGS and set timestamps in static libraries to 0

Modified:
  stable/10/gnu/lib/libgcc/Makefile
  stable/10/share/mk/bsd.lib.mk
  stable/10/share/mk/sys.mk
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/gnu/lib/libgcc/Makefile
==============================================================================
--- stable/10/gnu/lib/libgcc/Makefile	Sun Aug 24 14:21:47 2014	(r270483)
+++ stable/10/gnu/lib/libgcc/Makefile	Sun Aug 24 14:25:44 2014	(r270484)
@@ -352,7 +352,7 @@ libgcc_eh.a:	${EH_OBJS_T}
 	@${ECHO} building static gcc_eh library
 	@rm -f ${.TARGET}
 	@${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_T} | tsort -q`
-	${RANLIB} ${.TARGET}
+	${RANLIB} ${RANLIBFLAGS} ${.TARGET}
 
 all:	libgcc_eh.a
 
@@ -361,7 +361,7 @@ libgcc_eh_p.a:	${EH_OBJS_P}
 	@${ECHO} building profiled gcc_eh library
 	@rm -f ${.TARGET}
 	@${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_P} | tsort -q`
-	${RANLIB} ${.TARGET}
+	${RANLIB} ${RANLIBFLAGS} ${.TARGET}
 all:	libgcc_eh_p.a
 .endif
 

Modified: stable/10/share/mk/bsd.lib.mk
==============================================================================
--- stable/10/share/mk/bsd.lib.mk	Sun Aug 24 14:21:47 2014	(r270483)
+++ stable/10/share/mk/bsd.lib.mk	Sun Aug 24 14:25:44 2014	(r270484)
@@ -173,7 +173,7 @@ lib${LIB}.a: ${OBJS} ${STATICOBJS}
 .else
 	@${AR} ${ARFLAGS} ${.TARGET} `NM='${NM}' lorder ${OBJS} ${STATICOBJS} | tsort -q` ${ARADD}
 .endif
-	${RANLIB} ${.TARGET}
+	${RANLIB} ${RANLIBFLAGS} ${.TARGET}
 .endif
 
 .if !defined(INTERNALLIB)
@@ -190,7 +190,7 @@ lib${LIB}_p.a: ${POBJS}
 .else
 	@${AR} ${ARFLAGS} ${.TARGET} `NM='${NM}' lorder ${POBJS} | tsort -q` ${ARADD}
 .endif
-	${RANLIB} ${.TARGET}
+	${RANLIB} ${RANLIBFLAGS} ${.TARGET}
 .endif
 
 .if defined(SHLIB_NAME) || \
@@ -247,7 +247,7 @@ lib${LIB}_pic.a: ${SOBJS}
 	@${ECHO} building special pic ${LIB} library
 	@rm -f ${.TARGET}
 	@${AR} ${ARFLAGS} ${.TARGET} ${SOBJS} ${ARADD}
-	${RANLIB} ${.TARGET}
+	${RANLIB} ${RANLIBFLAGS} ${.TARGET}
 .endif
 
 .if defined(WANT_LINT) && !defined(NO_LINT) && defined(LIB) && !empty(LIB)

Modified: stable/10/share/mk/sys.mk
==============================================================================
--- stable/10/share/mk/sys.mk	Sun Aug 24 14:21:47 2014	(r270483)
+++ stable/10/share/mk/sys.mk	Sun Aug 24 14:25:44 2014	(r270484)
@@ -39,9 +39,12 @@ AR		?=	ar
 .if defined(%POSIX)
 ARFLAGS		?=	-rv
 .else
-ARFLAGS		?=	cru
+ARFLAGS		?=	-crD
 .endif
 RANLIB		?=	ranlib
+.if !defined(%POSIX)
+RANLIBFLAGS	?=	-D
+.endif
 
 AS		?=	as
 AFLAGS		?=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408241425.s7OEPiqN037544>