From 60429de987e6b7183f2582cef8a49f61e5c504bc Mon Sep 17 00:00:00 2001 From: samuel_yuan Date: Tue, 22 Feb 2022 14:10:29 +0800 Subject: [PATCH 1/2] update popt build files for riscv Signed-off-by: samuel_yuan --- BUILD.gn | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 70d0041..323d799 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,6 +1,10 @@ # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. -import("//build/lite/config/component/lite_component.gni") +if (defined(ohos_lite)) { + import("//build/lite/config/component/lite_component.gni") +} else { + import("//build/ohos.gni") +} config("popt_config") { include_dirs = [ "//third_party/popt" ] @@ -29,7 +33,6 @@ static_library("popt_static") { "-W", "-ffunction-sections", "-fdata-sections", - "-Wno-unused-const-variable", ] ldflags = [ "-Wl", -- Gitee From 2f19629abea117cd0b642240ab4c315c06d03c90 Mon Sep 17 00:00:00 2001 From: samuel_yuan Date: Tue, 22 Feb 2022 14:27:25 +0800 Subject: [PATCH 2/2] update iniparser build files for riscv Signed-off-by: samuel_yuan --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/BUILD.gn b/BUILD.gn index 323d799..67735a4 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -33,6 +33,7 @@ static_library("popt_static") { "-W", "-ffunction-sections", "-fdata-sections", + "-Wno-unused-const-variable", ] ldflags = [ "-Wl", -- Gitee