1 Star 0 Fork 15

周文培/lttng-ust

forked from src-openEuler/lttng-ust 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-build-with-fno-common.patch 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
zhouwenpei 提交于 2021-07-30 12:39 . fix build with -fno-common
From 21a934df4c683e73e0a66a9afca33573fcf9d789 Mon Sep 17 00:00:00 2001
From: Michael Jeanson <[email protected]>
Date: Thu, 16 Jan 2020 10:59:14 -0500
Subject: [PATCH] Fix: build with -fno-common
GCC 10 will default to building with -fno-common, this inhibits the
linker from merging multiple tentative definitions of a symbol in an
archive. Keep only the declaration in the libustsnprintf.la convenience
library.
Signed-off-by: Michael Jeanson <[email protected]>
Signed-off-by: Mathieu Desnoyers <[email protected]>
Change-Id: I8fb7c72811ce7e62f10342f55fcabeeabfdd4c67
---
liblttng-ust-ctl/ustctl.c | 2 --
liblttng-ust-fd/lttng-ust-fd.c | 2 --
2 files changed, 4 deletions(-)
diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c
index 949ece17a..c2b761a1b 100644
--- a/liblttng-ust-ctl/ustctl.c
+++ b/liblttng-ust-ctl/ustctl.c
@@ -77,8 +77,6 @@ extern void lttng_ring_buffer_client_discard_exit(void);
extern void lttng_ring_buffer_client_discard_rt_exit(void);
extern void lttng_ring_buffer_metadata_client_exit(void);
-volatile enum ust_loglevel ust_loglevel;
-
int ustctl_release_handle(int sock, int handle)
{
struct ustcomm_ust_msg lum;
diff --git a/liblttng-ust-fd/lttng-ust-fd.c b/liblttng-ust-fd/lttng-ust-fd.c
index 863f0618a..4818e02ed 100644
--- a/liblttng-ust-fd/lttng-ust-fd.c
+++ b/liblttng-ust-fd/lttng-ust-fd.c
@@ -28,8 +28,6 @@
#include <helper.h>
#include "usterr-signal-safe.h"
-volatile enum ust_loglevel ust_loglevel;
-
static int (*__lttng_ust_fd_plibc_close)(int fd);
static int (*__lttng_ust_fd_plibc_fclose)(FILE *stream);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhouwenpei/lttng-ust.git
[email protected]:zhouwenpei/lttng-ust.git
zhouwenpei
lttng-ust
lttng-ust
master

搜索帮助