aboutsummaryrefslogtreecommitdiff
path: root/contrib/gdtoa
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-12-06 01:31:25 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-12-06 01:31:25 +0000
commit37a60314613bc8baf1a46d9981e7c2f674dbe1cd (patch)
tree0ea47815d0d8b0a032fb3b1984970cc51a946957 /contrib/gdtoa
parentc3fa0037ba42a4d17ec37337fc2b2c83f2dfdafe (diff)
downloadsrc-37a60314613bc8baf1a46d9981e7c2f674dbe1cd.tar.gz
src-37a60314613bc8baf1a46d9981e7c2f674dbe1cd.zip
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
Notes
Notes: svn path=/head/; revision=243933
Diffstat (limited to 'contrib/gdtoa')
-rw-r--r--contrib/gdtoa/makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/gdtoa/makefile b/contrib/gdtoa/makefile
index b1f18cdf1094..97bd44f1696b 100644
--- a/contrib/gdtoa/makefile
+++ b/contrib/gdtoa/makefile
@@ -26,6 +26,8 @@
.SUFFIXES: .c .o
CC = cc
CFLAGS = -g
+AR ?= ar
+ARFLAGS ?= ruv
.c.o:
$(CC) -c $(CFLAGS) $*.c
@@ -52,12 +54,12 @@ gdtoa.a: dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c\
strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c strtorf.c\
strtorx.c strtorxL.c sum.c ulp.c
$(CC) -c $(CFLAGS) $?
- x=`echo $? | sed 's/\.c/.o/g'` && ar ruv gdtoa.a $$x && rm $$x
+ x=`echo $? | sed 's/\.c/.o/g'` && $(AR) $(ARFLAGS) gdtoa.a $$x && rm $$x
ranlib gdtoa.a || true
Printf: all printf.c
$(CC) -c $(CFLAGS) printf.c
- ar ruv gdtoa.a printf.o
+ $(AR) $(ARFLAGS) gdtoa.a printf.o
rm printf.o
touch Printf