diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-27 11:46:20 -0500 |
---|---|---|
committer | Jeff Moyer <jmoyer@redhat.com> | 2013-01-31 16:00:05 -0500 |
commit | 76cb1e93d0e7f59419df283bb95d887498da0fb9 (patch) | |
tree | d53ce900a965db99b33d9e8685a3dab2d01e62c3 | |
parent | 261fb81825972d24ed422028ebb8ca4c2e8a7783 (diff) | |
download | libaio-76cb1e93d0e7f59419df283bb95d887498da0fb9.tar.gz |
build system: respect AR/RANLIB
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
-rw-r--r-- | src/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 8d134cc..1cfed53 100644 --- a/src/Makefile +++ b/src/Makefile @@ -41,11 +41,12 @@ $(libaio_objs) $(libaio_sobjs): libaio.h vsys_def.h %.ol: %.c $(CC) $(L_CFLAGS) -c -o $@ $< - +AR ?= ar +RANLIB ?= ranlib libaio.a: $(libaio_objs) rm -f libaio.a - ar r libaio.a $^ - ranlib libaio.a + $(AR) r libaio.a $^ + $(RANLIB) libaio.a $(libname): $(libaio_sobjs) libaio.map $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS) |