diff options
Diffstat (limited to 'rtabmap-slam.spec')
| -rw-r--r-- | rtabmap-slam.spec | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rtabmap-slam.spec b/rtabmap-slam.spec index 5ea7a45..06786ab 100644 --- a/rtabmap-slam.spec +++ b/rtabmap-slam.spec @@ -1,6 +1,10 @@ %bcond_with tests %bcond_without weak_deps +# Reduce debug info level to avoid OOM/timeout on EUR aarch64 builder +# CoreWrapper.cpp is huge and -g (full DWARF) causes multi-hour compile +%global optflags %(echo '%{optflags}' | sed 's/-g /-g1 /; s/-grecord-gcc-switches//') + %define ros_distro humble %global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') @@ -11,7 +15,7 @@ Name: ros-%{ros_distro}-%{RosPkgName} Version: 0.22.1 -Release: 3%{?dist}%{?release_suffix} +Release: 4%{?dist}%{?release_suffix} Summary: RTAB-Map's SLAM package. License: BSD @@ -80,9 +84,6 @@ 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 \ |
