policycoreutils: Remove LDFLAGS from CFLAGS
Mixing LDFLAGS in CFLAGS can lead to compiler errors. For example in policycoreutils/sandbox: $ make CC=clang LDFLAGS='-Wl,-as-needed,-no-undefined' clang -Wl,-as-needed,-no-undefined -I/usr/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra -W -c -o seunshare.o seunshare.c clang-3.8: error: -Wl,-as-needed,-no-undefined: 'linker' input unused Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
b7ac3286f2
commit
d977330c98
|
@ -22,7 +22,7 @@ VERSION = $(shell cat ../VERSION)
|
|||
|
||||
CFLAGS ?= -Werror -Wall -W
|
||||
EXTRA_OBJS =
|
||||
override CFLAGS += -DVERSION=\"$(VERSION)\" $(LDFLAGS) -I$(PREFIX)/include -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
|
||||
override CFLAGS += -DVERSION=\"$(VERSION)\" -I$(PREFIX)/include -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
|
||||
LDLIBS += -lselinux -L$(PREFIX)/lib
|
||||
ifeq ($(PAMH), /usr/include/security/pam_appl.h)
|
||||
override CFLAGS += -DUSE_PAM
|
||||
|
|
|
@ -9,7 +9,7 @@ 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 -W
|
||||
override CFLAGS += -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra -W
|
||||
LDLIBS += -lselinux -lcap-ng -L$(LIBDIR)
|
||||
SEUNSHARE_OBJS = seunshare.o
|
||||
|
||||
|
|
Loading…
Reference in New Issue