lower debuginfo verbosity with -g1 to allow building for armv7hl

This commit is contained in:
Gabriel L. Somlo 2019-03-20 11:26:58 -04:00
parent 928e9ce44d
commit 2aea649c62
1 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,7 @@
%global commit1 d0b219af41ae3da6150645fbc5cc5613b530603f
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})
%global snapdate 20190319
%global snapdate 20190320
%global __python %{__python3}
@ -58,9 +58,10 @@ Lattice ECP5 FPGA devices.
rm -rf database
mv prj%{name}-db-%{commit1} database
#%%patch1 -p1
# add "-fPIC -g" to CMAKE_CXX_FLAGS:
sed -i '/CMAKE_CXX_FLAGS/s/-O3/-O3 -fPIC -g/' libtrellis/CMakeLists.txt
# prevent "lib64" false positive (e.g., on i386 and armv7hl):
# add "-fPIC -g1" to CMAKE_CXX_FLAGS:
# (NOTE: "-g1" reduces debuginfo verbosity over "-g", which helps on armv7hl)
sed -i '/CMAKE_CXX_FLAGS/s/-O3/-O3 -fPIC -g1/' libtrellis/CMakeLists.txt
# prevent "lib64" false positive (e.g., on i386):
sed -i 's/"lib64"/${LIB_INSTALL_DIR}/' libtrellis/CMakeLists.txt
# fix shebang lines in Python scripts:
find . -name \*.py -exec sed -i 's|/usr/bin/env python3|/usr/bin/python3|' {} \;
@ -110,5 +111,5 @@ install -Dpm644 -t %{buildroot}%{_mandir}/man1 man1/*
%{_datadir}/%{name}/database
%changelog
* Tue Mar 19 2019 Gabriel Somlo <gsomlo@gmail.com> - 1.0-0.1.20190319git26d6667
* Wed Mar 20 2019 Gabriel Somlo <gsomlo@gmail.com> - 1.0-0.1.20190320git26d6667
- Initial version.