common: compile libcompat as C++
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 3 Sep 2021 21:31:29 +0000 (17:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Nov 2021 23:58:46 +0000 (18:58 -0500)
commit740da7d5000ca1ffdcf14bda5096bf7ccfb86bdd
tree72be61e8af9333a130e82709716e1ff54fa9ac8e
parent02c3d2c2e3b27ab0bad1207c70465f84b649c816
common: compile libcompat as C++

I got errors like these for programs that use libcompat (usually through
libcommon), but are still linked with gcc, rather than g++:

  CCLD     filter-grammar-test
/usr/bin/ld: ./.libs/libcommon.a(directory-handle.o):(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `_
_gxx_personality_v0'

Automake still links them with gcc, because they don't contain any C++
source directly. Fix that by changing them to be C++ source.

Change-Id: I3eeca3d9af8940795b69f48d306f282ae0b08589
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
61 files changed:
include/lttng/action/rate-policy-internal.h
include/lttng/event-expr-internal.h
include/lttng/kernel-probe-internal.h
include/lttng/log-level-rule-internal.h
src/common/Makefile.am
src/common/compat/Makefile.am
src/common/compat/compat-fcntl.c [deleted file]
src/common/compat/compat-fcntl.cpp [new file with mode: 0644]
src/common/compat/directory-handle.c [deleted file]
src/common/compat/directory-handle.cpp [new file with mode: 0644]
src/common/compat/fcntl.h
src/common/compat/poll.c [deleted file]
src/common/compat/poll.cpp [new file with mode: 0644]
src/common/filter-grammar-test.c [deleted file]
src/common/filter-grammar-test.cpp [new file with mode: 0644]
tests/unit/Makefile.am
tests/unit/ini_config/Makefile.am
tests/unit/ini_config/ini_config.c [deleted file]
tests/unit/ini_config/ini_config.cpp [new file with mode: 0644]
tests/unit/test_action.c [deleted file]
tests/unit/test_action.cpp [new file with mode: 0644]
tests/unit/test_buffer_view.c [deleted file]
tests/unit/test_buffer_view.cpp [new file with mode: 0644]
tests/unit/test_condition.c [deleted file]
tests/unit/test_condition.cpp [new file with mode: 0644]
tests/unit/test_directory_handle.c [deleted file]
tests/unit/test_directory_handle.cpp [new file with mode: 0644]
tests/unit/test_event_expr_to_bytecode.c [deleted file]
tests/unit/test_event_expr_to_bytecode.cpp [new file with mode: 0644]
tests/unit/test_event_rule.c [deleted file]
tests/unit/test_event_rule.cpp [new file with mode: 0644]
tests/unit/test_fd_tracker.c [deleted file]
tests/unit/test_fd_tracker.cpp [new file with mode: 0644]
tests/unit/test_kernel_probe.c [deleted file]
tests/unit/test_kernel_probe.cpp [new file with mode: 0644]
tests/unit/test_log_level_rule.c [deleted file]
tests/unit/test_log_level_rule.cpp [new file with mode: 0644]
tests/unit/test_notification.c [deleted file]
tests/unit/test_notification.cpp [new file with mode: 0644]
tests/unit/test_payload.c [deleted file]
tests/unit/test_payload.cpp [new file with mode: 0644]
tests/unit/test_rate_policy.c [deleted file]
tests/unit/test_rate_policy.cpp [new file with mode: 0644]
tests/unit/test_string_utils.c [deleted file]
tests/unit/test_string_utils.cpp [new file with mode: 0644]
tests/unit/test_unix_socket.c [deleted file]
tests/unit/test_unix_socket.cpp [new file with mode: 0644]
tests/unit/test_uri.c [deleted file]
tests/unit/test_uri.cpp [new file with mode: 0644]
tests/unit/test_utils_compat_poll.c [deleted file]
tests/unit/test_utils_compat_poll.cpp [new file with mode: 0644]
tests/unit/test_utils_compat_pthread.c [deleted file]
tests/unit/test_utils_compat_pthread.cpp [new file with mode: 0644]
tests/unit/test_utils_expand_path.c [deleted file]
tests/unit/test_utils_expand_path.cpp [new file with mode: 0644]
tests/unit/test_utils_parse_size_suffix.c [deleted file]
tests/unit/test_utils_parse_size_suffix.cpp [new file with mode: 0644]
tests/unit/test_utils_parse_time_suffix.c [deleted file]
tests/unit/test_utils_parse_time_suffix.cpp [new file with mode: 0644]
tests/unit/test_uuid.c [deleted file]
tests/unit/test_uuid.cpp [new file with mode: 0644]
This page took 0.030332 seconds and 4 git commands to generate.