From d1ff6ab589239e80a61d01515595dfc66ca0ac04 Mon Sep 17 00:00:00 2001 From: zhushengle Date: Mon, 5 Jul 2021 10:06:27 +0800 Subject: [PATCH] fix: When the kernel type is liteos_m, unlink the pie option Close #I3Z4DT Signed-off-by: zhushengle Change-Id: I03519ced31390c7766b77d76368168f14fe96629 --- config/BUILDCONFIG.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/BUILDCONFIG.gn b/config/BUILDCONFIG.gn index d24a463..87ca10c 100755 --- a/config/BUILDCONFIG.gn +++ b/config/BUILDCONFIG.gn @@ -138,11 +138,11 @@ default_target_configs += [ default_shared_library_configs = default_target_configs + [ "//build/lite/config:shared_library_config" ] default_static_library_configs = default_target_configs +default_executable_configs = default_static_library_configs if (ohos_kernel_type != "liteos_m") { default_static_library_configs += [ "//build/lite/config:static_pie_config" ] + default_executable_configs += [ "//build/lite/config:pie_executable_config" ] } -default_executable_configs = default_static_library_configs + - [ "//build/lite/config:pie_executable_config" ] set_defaults("executable") { configs = default_executable_configs -- GitLab