From 07085279a1e8be73fa7d6a2111a5a0ba10480518 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Sat, 29 Dec 2012 02:58:07 -0500 Subject: [PATCH] use $(AR) variable instead of ar --- Make.inc | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Make.inc b/Make.inc index 32bf388..6269159 100644 --- a/Make.inc +++ b/Make.inc @@ -21,6 +21,7 @@ ifeq ($(USEGCC),1) CC = gcc CFLAGS += -fno-gnu89-inline endif +AR = ar default: all diff --git a/Makefile b/Makefile index 9da82ed..c022a3f 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ OBJS = $(patsubst %.f,%.f.o,\ all: libopenlibm.a libopenlibm.$(SHLIB_EXT) $(MAKE) -C test libopenlibm.a: $(OBJS) - ar -rcs libopenlibm.a $(OBJS) + $(AR) -rcs libopenlibm.a $(OBJS) libopenlibm.$(SHLIB_EXT): $(OBJS) $(FC) -shared $(OBJS) $(LDFLAGS) -o libopenlibm.$(SHLIB_EXT)