diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2022-03-16 01:28:01 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-03-16 01:28:01 +0000 |
commit | 7aa7467340619e580623be7c986dd95729660925 (patch) | |
tree | 66d50626296032e95c21ec92204330e8b3a089fb | |
parent | 8795f2dae1b1618406b5633585dfc11309f5a918 (diff) | |
parent | b773de7d8619ca6c45a1081e627ff191dc38401e (diff) | |
download | selinux-7aa7467340619e580623be7c986dd95729660925.tar.gz |
Update Android.bp am: 0ff24d85f1 am: 2c53b55090 am: b773de7d86
Original change: https://android-review.googlesource.com/c/platform/external/selinux/+/2024487
Change-Id: I9ce6929e8e36f52da2b8c5b9d48e3b6a2670aa87
-rw-r--r-- | libsepol/Android.bp | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/libsepol/Android.bp b/libsepol/Android.bp index 5232a68a..6135745c 100644 --- a/libsepol/Android.bp +++ b/libsepol/Android.bp @@ -33,21 +33,32 @@ license { ], } -common_CFLAGS = [ - "-D_GNU_SOURCE", - "-Wall", - "-Werror", - "-W", - "-Wundef", - "-Wshadow", - "-Wno-error=missing-noreturn", - "-Wmissing-format-attribute", -] +cc_defaults { + name: "libsepol_defaults", + cflags: [ + "-D_GNU_SOURCE", + "-Wall", + "-Werror", + "-W", + "-Wundef", + "-Wshadow", + "-Wno-error=missing-noreturn", + "-Wmissing-format-attribute", + ], + target: { + bionic: { + cflags: ["-DHAVE_REALLOCARRAY"] + }, + musl: { + cflags: ["-DHAVE_REALLOCARRAY"] + } + } +} cc_library { name: "libsepol", + defaults: ["libsepol_defaults"], host_supported: true, - cflags: common_CFLAGS, srcs: [ "src/assertion.c", "src/avrule_block.c", @@ -135,7 +146,7 @@ cc_library { cc_binary_host { name: "chkcon", + defaults: ["libsepol_defaults"], srcs: ["utils/chkcon.c"], shared_libs: ["libsepol"], - cflags: common_CFLAGS, } |