提交 61330688 编写于 作者: C chengjinsong2

回退编译选项-fno-common

Signed-off-by: Nchengjinsong2 <chengjinsong2@huawei.com>
上级 4fa08ecd
......@@ -13,7 +13,6 @@
# limitations under the License.
static_library("hal_sys_param") {
cflags = [ "-fno-common" ]
sources = [ "hal_sys_param.c" ]
include_dirs = [ "//base/startup/init/interfaces/hals" ]
defines = [
......
......@@ -122,7 +122,6 @@ if (defined(ohos_lite)) {
]
defines += [ "LITEOS_SUPPORT" ]
sources += syspara_sources
cflags = [ "-fno-common" ]
} else {
sources += [ "syscap/init_syscap.c" ]
}
......
......@@ -34,7 +34,6 @@ if (defined(ohos_lite)) {
"_GNU_SOURCE",
"OHOS_LITE",
]
cflags = [ "-fno-common" ]
include_dirs = comm_include
sources = [ "param_hook.c" ]
public_configs = [ ":inithook_config" ]
......
......@@ -41,10 +41,7 @@ base_include_dirs = [
if (defined(ohos_lite)) {
static_library("parameterbase") {
cflags = [
"-fPIC",
"-fno-common",
]
cflags = [ "-fPIC" ]
sources = comm_sources
sources += [
"//base/startup/init/services/log/init_commlog.c",
......
......@@ -77,7 +77,6 @@ if (defined(ohos_lite)) {
if (defined(boot_kernel_extended_cmdline)) {
defines += [ "BOOT_EXTENDED_CMDLINE=\"${boot_kernel_extended_cmdline}\"" ]
}
cflags = [ "-fno-common" ]
defines += [
"_GNU_SOURCE",
"__LINUX__",
......@@ -96,10 +95,7 @@ if (defined(ohos_lite)) {
include_dirs = param_include_dirs
sources = param_client_sources
public_configs = [ ":exported_header_files" ]
cflags = [
"-fPIC",
"-fno-common",
]
cflags = [ "-fPIC" ]
defines = [
"_GNU_SOURCE",
"__LINUX__",
......
......@@ -17,7 +17,6 @@ if (defined(ohos_lite)) {
"//base/startup/init/services/log/init_commlog.c",
"//base/startup/init/watchdog/init_watchdog.c",
]
cflags = [ "-fno-common" ]
deps = [
"//base/startup/init/services/log:init_log",
"//third_party/bounds_checking_function:libsec_static",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册