From df2b9a5e0afa52ef9a0d2e4fb48086c88ccd7d18 Mon Sep 17 00:00:00 2001 From: liujia178 Date: Fri, 24 Nov 2023 15:03:48 +0800 Subject: [PATCH] adapt to Linux aarch64 compilation Signed-off-by: liujia178 --- BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 758f1070..c916a285 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -221,6 +221,11 @@ ohos_shared_library("libselinux") { "-DAUDITD_LOG_TAG=1003", "-DPCRE2_CODE_UNIT_WIDTH=8", ] + if (host_cpu == "arm64") { + cflags += [ + "-DWITH_FREEBSD" + ] + } deps = [ "$LIBPCRE2_ROOT_DIR:libpcre2" ] install_enable = true install_images = [ -- Gitee