mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-03 04:02:05 +00:00
restorecond: get pcre cflags/libs from pkg-config
Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
parent
fcb5d5cc72
commit
74093beab0
@ -21,12 +21,15 @@ override CFLAGS += $(DBUSFLAGS)
|
|||||||
|
|
||||||
USE_PCRE2 ?= n
|
USE_PCRE2 ?= n
|
||||||
ifeq ($(USE_PCRE2),y)
|
ifeq ($(USE_PCRE2),y)
|
||||||
PCRE_LDFLAGS := -lpcre2-8
|
PCRE_CFLAGS := -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8 $(shell $(PKG_CONFIG) --cflags libpcre2-8)
|
||||||
|
PCRE_LDLIBS := $(shell $(PKG_CONFIG) --libs libpcre2-8)
|
||||||
else
|
else
|
||||||
PCRE_LDFLAGS := -lpcre
|
PCRE_CFLAGS := $(shell $(PKG_CONFIG) --cflags libpcre)
|
||||||
|
PCRE_LDLIBS := $(shell $(PKG_CONFIG) --libs libpcre)
|
||||||
endif
|
endif
|
||||||
|
export PCRE_CFLAGS PCRE_LDLIBS
|
||||||
|
|
||||||
LDLIBS += -lselinux $(PCRE_LDFLAGS) $(DBUSLIB) -L$(LIBDIR)
|
LDLIBS += -lselinux $(PCRE_LDLIBS) $(DBUSLIB)
|
||||||
|
|
||||||
all: restorecond
|
all: restorecond
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user