mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-23 14:32:08 +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
|
||||
LOCALEDIR ?= /usr/share/locale
|
||||
SHAREDIR ?= $(PREFIX)/share/sandbox
|
||||
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra
|
||||
LDLIBS += -lcgroup -lselinux -lcap-ng
|
||||
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra -W
|
||||
LDLIBS += -lcgroup -lselinux -lcap-ng -L$(LIBDIR)
|
||||
SEUNSHARE_OBJS = seunshare.o
|
||||
|
||||
all: sandbox seunshare sandboxX.sh start
|
||||
|
||||
seunshare: seunshare.o $(EXTRA_OBJS)
|
||||
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) -L$(LIBDIR)
|
||||
seunshare: $(SEUNSHARE_OBJS)
|
||||
|
||||
install: all
|
||||
-mkdir -p $(BINDIR)
|
||||
|
Loading…
Reference in New Issue
Block a user