use $(AR) variable instead of ar

This commit is contained in:
Jameson Nash 2012-12-29 02:58:07 -05:00
parent 34013cae40
commit 07085279a1
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ ifeq ($(USEGCC),1)
CC = gcc
CFLAGS += -fno-gnu89-inline
endif
AR = ar
default: all

View File

@ -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)