summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-31 01:57:21 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-31 01:57:21 +0000
commitf690aee00a44fa9060a9f139ecfcff9524ff4660 (patch)
treec86004fdb6fcae43a59bf7423033dcc9d0e62ba4
parent6d572b1be217560c15f49fe8b8f0d54f479f7d7f (diff)
automatic import of rtabmap-slam
-rw-r--r--rtabmap-slam.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/rtabmap-slam.spec b/rtabmap-slam.spec
index aff751b..5ea7a45 100644
--- a/rtabmap-slam.spec
+++ b/rtabmap-slam.spec
@@ -11,7 +11,7 @@
Name: ros-%{ros_distro}-%{RosPkgName}
Version: 0.22.1
-Release: 2%{?dist}%{?release_suffix}
+Release: 3%{?dist}%{?release_suffix}
Summary: RTAB-Map's SLAM package.
License: BSD
@@ -80,6 +80,9 @@ export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packa
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
+# Strip -g from flags to reduce compile time and memory on EUR aarch64 builder
+export CFLAGS=$(echo $CFLAGS | sed 's/-g /-g1 /g; s/-grecord-gcc-switches//g')
+export CXXFLAGS=$(echo $CXXFLAGS | sed 's/-g /-g1 /g; s/-grecord-gcc-switches//g')
mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform}
%cmake3 \
-UINCLUDE_INSTALL_DIR \
@@ -91,8 +94,6 @@ mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform}
-DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \
-DCMAKE_PREFIX_PATH="/opt/ros/%{ros_distro}" \
-DSETUPTOOLS_DEB_LAYOUT=OFF \
- -DCMAKE_CXX_FLAGS_RELEASE="-O2 -DNDEBUG" \
- -DCMAKE_C_FLAGS_RELEASE="-O2 -DNDEBUG" \
%if !0%{?with_tests}
-DBUILD_TESTING=OFF \
%endif