From bc7b4a4f1ddef170f31c9f74a8d5576e50b41700 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Thu, 28 Apr 2022 10:15:26 -0400 Subject: [PATCH] cli: Rename `logging.c` to `logging.cpp` to force C++ linking This is to force the linking of the babeltrace2 binary using a C++ linker. This is necessary to support the Babeltrace2 static build once we start depending on C++ symbols. Signed-off-by: Francis Deslauriers Change-Id: Ife9967d9362c7648b6ea031f453262a10aa03483 Reviewed-on: https://review.lttng.org/c/babeltrace/+/7954 Reviewed-by: Michael Jeanson Reviewed-by: Philippe Proulx Reviewed-on: https://review.lttng.org/c/babeltrace/+/9597 CI-Build: Simon Marchi Reviewed-by: Simon Marchi Tested-by: Simon Marchi --- src/cli/Makefile.am | 2 +- src/cli/{logging.c => logging.cpp} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/cli/{logging.c => logging.cpp} (100%) diff --git a/src/cli/Makefile.am b/src/cli/Makefile.am index adbf2bb0..29a6478e 100644 --- a/src/cli/Makefile.am +++ b/src/cli/Makefile.am @@ -38,7 +38,7 @@ babeltrace2_bin_SOURCES = \ babeltrace2-plugins.h \ babeltrace2-query.c \ babeltrace2-query.h \ - logging.c \ + logging.cpp \ logging.h # -Wl,--no-as-needed is needed for recent gold linker who seems to think diff --git a/src/cli/logging.c b/src/cli/logging.cpp similarity index 100% rename from src/cli/logging.c rename to src/cli/logging.cpp -- 2.34.1