diff --git a/BUILD.gn b/BUILD.gn index 758f1070db8b0003184713601205e3ce95601f6a..c916a285653cf01c3ccfb6e27dfe93fd82f9340e 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 = [