]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Use new AR variable instead of hardcoded command
authorGuillem Jover <guillem@hadrons.org>
Sat, 30 Jan 2010 21:43:29 +0000 (22:43 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 30 Jan 2010 21:43:56 +0000 (22:43 +0100)
Makefile

index 4e1ac28c99e25552f68a659aac8d75ebc7b07ee5..e9dda453e78e5fa85de2e5b6719a5f8c473cff88 100644 (file)
--- 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 $^ $@