summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2010-01-30 22:43:29 +0100
committerGuillem Jover <guillem@hadrons.org>2010-01-30 22:43:56 +0100
commit51863b6cf92883b6f2d58aa764b107e15d834b6f (patch)
treefa67a94bb45a210139f7624690f4c7184d37bfd2
parent08afd5d4c9a8579edabc5539e7404677a4f3df71 (diff)
build: Use new AR variable instead of hardcoded command
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4e1ac28..e9dda45 100644
--- a/Makefile
+++ b/Makefile
@@ -100,6 +100,7 @@ LIB_MANS := $(patsubst %,src/%,$(LIB_MANS))
LIB_STATIC_OBJS := $(LIB_SRCS:%.c=%.o)
LIB_SHARED_OBJS := $(LIB_SRCS:%.c=%.lo)
+AR = ar
CC = gcc
CCLD = $(CC)
@@ -146,7 +147,7 @@ $(LIB_PKGCONFIG): $(LIB_PKGCONFIG).in
$< > $@
$(LIB_STATIC): $(LIB_STATIC_OBJS)
- ar rcs $@ $^
+ $(AR) rcs $@ $^
$(LIB_SHARED_SO): $(LIB_SONAME)
ln -fs $^ $@