Merge branch 'master' into 'master'
Switch to PCRE2
See merge request android-tools-team/android-platform-external-libselinux!13
Roger Shimizu
9 months ago
6 | 6 |
Umang Parmar <umangjparmar@gmail.com>
|
7 | 7 |
Build-Depends: debhelper-compat (= 12),
|
8 | 8 |
dh-exec,
|
9 | |
libpcre3-dev
|
|
9 |
libpcre2-dev
|
10 | 10 |
Standards-Version: 4.5.0
|
11 | 11 |
Rules-Requires-Root: no
|
12 | 12 |
Homepage: https://android.googlesource.com/platform/external/selinux
|
0 | 0 |
NAME = libselinux
|
1 | 1 |
|
2 | 2 |
cc_defaults_target_host_cflags = -DBUILD_HOST
|
3 | |
|
4 | |
cc_library_cflags = -DUSE_PCRE2
|
5 | 3 |
|
6 | 4 |
cc_defaults_srcs = \
|
7 | 5 |
src/booleans.c \
|
|
64 | 62 |
-D_GNU_SOURCE \
|
65 | 63 |
-DNO_MEDIA_BACKEND \
|
66 | 64 |
-DNO_X_BACKEND \
|
67 | |
-DNO_DB_BACKEND
|
|
65 |
-DNO_DB_BACKEND \
|
|
66 |
-DUSE_PCRE2 \
|
|
67 |
-DPCRE2_CODE_UNIT_WIDTH=8
|
68 | 68 |
CPPFLAGS += -Ilibselinux/include -Ilibsepol/include -DHOST
|
69 | 69 |
LDFLAGS += -shared -Wl,-soname,$(NAME).so.0 \
|
70 | |
-Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android -lpcre \
|
|
70 |
-Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android -lpcre2-8 \
|
71 | 71 |
-Ldebian/out -lsepol
|
72 | 72 |
|
73 | 73 |
build: $(SOURCES)
|
47 | 47 |
SOURCES := $(foreach source, $(SOURCES), libsepol/$(source))
|
48 | 48 |
CFLAGS += \
|
49 | 49 |
-D_GNU_SOURCE \
|
|
50 |
-DUSE_PCRE2 \
|
50 | 51 |
-Wundef \
|
51 | 52 |
-Wshadow \
|
52 | 53 |
-Wmissing-noreturn \
|