mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-11 07:59:26 +00:00
policycoreutils: Fix Makefile to match other policycoreutils Makefiles
Include -W Set LDLIBS consistently (include -L$(LIBDIR)) Don't explicitly call $(CC) let make do it. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
5e46bb8647
commit
c4c0748091
@ -8,13 +8,13 @@ SBINDIR ?= $(PREFIX)/sbin
|
|||||||
MANDIR ?= $(PREFIX)/share/man
|
MANDIR ?= $(PREFIX)/share/man
|
||||||
LOCALEDIR ?= /usr/share/locale
|
LOCALEDIR ?= /usr/share/locale
|
||||||
SHAREDIR ?= $(PREFIX)/share/sandbox
|
SHAREDIR ?= $(PREFIX)/share/sandbox
|
||||||
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra
|
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra -W
|
||||||
LDLIBS += -lcgroup -lselinux -lcap-ng
|
LDLIBS += -lcgroup -lselinux -lcap-ng -L$(LIBDIR)
|
||||||
|
SEUNSHARE_OBJS = seunshare.o
|
||||||
|
|
||||||
all: sandbox seunshare sandboxX.sh start
|
all: sandbox seunshare sandboxX.sh start
|
||||||
|
|
||||||
seunshare: seunshare.o $(EXTRA_OBJS)
|
seunshare: $(SEUNSHARE_OBJS)
|
||||||
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) -L$(LIBDIR)
|
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
-mkdir -p $(BINDIR)
|
-mkdir -p $(BINDIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user