From 3b44fe10e5961ec5ef6a9a7037dbc3b9840ca1a9 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Fri, 11 Oct 2013 10:52:42 -0400 Subject: [PATCH] Patch from Sven Vermeulen to use RANLIB. This will allow users to specify alternal ranlib commands. --- libsepol/src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsepol/src/Makefile b/libsepol/src/Makefile index 79de6dc1..e10d3564 100644 --- a/libsepol/src/Makefile +++ b/libsepol/src/Makefile @@ -3,6 +3,7 @@ PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include LIBDIR ?= $(PREFIX)/lib SHLIBDIR ?= $(DESTDIR)/lib +RANLIB ?= ranlib LIBBASE ?= $(shell basename $(LIBDIR)) VERSION = $(shell cat ../VERSION) @@ -21,7 +22,7 @@ all: $(LIBA) $(LIBSO) $(LIBPC) $(LIBA): $(OBJS) $(AR) rcs $@ $^ - ranlib $@ + $(RANLIB) $@ $(LIBSO): $(LOBJS) $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -Wl,-soname,$(LIBSO),--version-script=libsepol.map,-z,defs