Patch from Sven Vermeulen to use RANLIB.

This will allow users to specify alternal ranlib commands.
This commit is contained in:
Dan Walsh 2013-10-11 10:52:42 -04:00 committed by Stephen Smalley
parent 6020fb0b1e
commit 3b44fe10e5
1 changed files with 2 additions and 1 deletions

View File

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