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