summaryrefslogtreecommitdiff
path: root/cartographer-ros-fix-absl-macros.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-20 03:08:52 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-20 03:08:52 +0000
commit4b11b789ad8a911d96d3b8ca3718f30a6615e765 (patch)
tree6011d724a81c12aaa54583a2742ff27f30b25a60 /cartographer-ros-fix-absl-macros.patch
parenta1cdfd4783a1d66e674567cb6f1275359ab0d47e (diff)
automatic import of ros-humble-cartographer-rosopeneuler24.03_LTS_SP3
Diffstat (limited to 'cartographer-ros-fix-absl-macros.patch')
-rw-r--r--cartographer-ros-fix-absl-macros.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/cartographer-ros-fix-absl-macros.patch b/cartographer-ros-fix-absl-macros.patch
new file mode 100644
index 0000000..9442cdc
--- /dev/null
+++ b/cartographer-ros-fix-absl-macros.patch
@@ -0,0 +1,19 @@
+--- a/cartographer_ros/CMakeLists.txt
++++ b/cartographer_ros/CMakeLists.txt
+@@ -18,6 +18,15 @@ cmake_minimum_required(VERSION 3.5)
+
+ project(cartographer_ros)
+
++# Abseil thread-safety annotation macros contain parentheses which break
++# shell command-line parsing when passed via CXXFLAGS. Define them here
++# via CMake so they never reach the shell.
++add_compile_definitions(
++ "GUARDED_BY(x)="
++ "EXCLUSIVE_LOCKS_REQUIRED(x)="
++ "GUARDED_BY_CONTENTION(x)="
++ "SHARED_LOCKS_REQUIRED(x)="
++)
++
+ find_package(ament_cmake REQUIRED)
+
+ # Default to C++17