提交 61330688 编写于 作者: C chengjinsong2

回退编译选项-fno-common

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