summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-12-06 01:31:25 +0000
committereadler <eadler@FreeBSD.org>2012-12-06 01:31:25 +0000
commit0af88b7eaea295debd7e17720aa05323c8c487df (patch)
tree0ea47815d0d8b0a032fb3b1984970cc51a946957 /gnu
parentd63ec4c24b02575838256ea35e13bf20df348995 (diff)
downloadFreeBSD-src-0af88b7eaea295debd7e17720aa05323c8c487df.zip
FreeBSD-src-0af88b7eaea295debd7e17720aa05323c8c487df.tar.gz
Clean up hardcoded ar(1) flags in the tree to use the global ARFLAGS in
share/mk/sys.mk instead. This is part of a medium term project to permit deterministic builds of FreeBSD. Submitted by: Erik Cederstrand <erik@cederstrand.dk> Reviewed by: imp, toolchain@ Approved by: cperciva MFC after: 2 weeks
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libgcc/Makefile4
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index 9c54377..52a0c2d 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -341,7 +341,7 @@ CLEANFILES += libgcc.map
libgcc_eh.a: ${EH_OBJS_T}
@${ECHO} building static gcc_eh library
@rm -f ${.TARGET}
- @${AR} cq ${.TARGET} `lorder ${EH_OBJS_T} | tsort -q`
+ @${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_T} | tsort -q`
${RANLIB} ${.TARGET}
all: libgcc_eh.a
@@ -350,7 +350,7 @@ all: libgcc_eh.a
libgcc_eh_p.a: ${EH_OBJS_P}
@${ECHO} building profiled gcc_eh library
@rm -f ${.TARGET}
- @${AR} cq ${.TARGET} `lorder ${EH_OBJS_P} | tsort -q`
+ @${AR} ${ARFLAGS} ${.TARGET} `lorder ${EH_OBJS_P} | tsort -q`
${RANLIB} ${.TARGET}
all: libgcc_eh_p.a
.endif
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index 3cedd69..c697dd3 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -512,7 +512,7 @@ ${_src:R:S/$/.o/}: ${_src}
${LIBIBERTY}: ${LIBIBERTY_OBJS}
@rm -f ${.TARGET}
- @${AR} cq ${.TARGET} `lorder ${LIBIBERTY_OBJS} | tsort -q`
+ @${AR} ${ARFLAGS} ${.TARGET} `lorder ${LIBIBERTY_OBJS} | tsort -q`
${RANLIB} ${.TARGET}
CLEANFILES+= ${LIBIBERTY} ${LIBIBERTY_OBJS}
OpenPOWER on IntegriCloud