From cc532311c57ede627110506b369b1fec99645e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BA=E5=85=B4=E6=88=90?= Date: Wed, 22 Oct 2025 02:26:13 +0000 Subject: [PATCH] =?UTF-8?q?update=20librealsense2.spec.=2038=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0BuildRequires:=20=20libatomic-devel=2083=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20-latomic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 贺兴成 --- librealsense2.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librealsense2.spec b/librealsense2.spec index 93644ec..d52e89e 100644 --- a/librealsense2.spec +++ b/librealsense2.spec @@ -35,6 +35,7 @@ BuildRequires: git BuildRequires: systemd-udev BuildRequires: cmake BuildRequires: agiros-%{ros_distro}-ros-workspace +BuildRequires: libatomic-devel %if 0%{?with_tests} @@ -79,7 +80,7 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} %endif -DCMAKE_CXX_FLAGS="-fno-lto -Wl,--no-gc-sections" \ -DCMAKE_CXX_FLAGS_RELEASE="-O1 -g -fno-lto -Wl,--no-gc-sections" \ - -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-gc-sections" \ + -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-gc-sections -latomic" \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-gc-sections" \ .. -- Gitee