summaryrefslogtreecommitdiff
path: root/rtabmap-slam.spec
diff options
context:
space:
mode:
Diffstat (limited to 'rtabmap-slam.spec')
-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