commit 9c803c4e85c3062365a9fa1fa1cfa67fd5ce148f
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Thu Nov 7 15:01:39 2019 +0300
Enable LTO.
motion.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/motion.spec b/motion.spec
index b4b24c4..299882c 100644
--- a/motion.spec
+++ b/motion.spec
@@ -21,9 +21,12 @@
# tar -pczf motion-3.3.0.tar.gz motion-3.3.0/
#v-
+%global optflags %{optflags} -flto=auto
+%global build_ldflags %{build_ldflags} -flto
+
Name: motion
Version: 4.2.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A motion detection system
License: GPLv2+
@@ -67,6 +70,9 @@ without MySQL and PostgreSQL support.
autoreconf -v
%build
+export AR=%{_bindir}/gcc-ar
+export RANLIB=%{_bindir}/gcc-ranlib
+export NM=%{_bindir}/gcc-nm
%configure \
--without-optimizecpu \
--with-ffmpeg \
@@ -135,6 +141,9 @@ find /var/motion -user root -group root -exec chown motion:video
'{}' ';'
%{_tmpfilesdir}/%{name}.conf
%changelog
+* Thu Nov 07 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 4.2.2-4
+- Enable LTO
+
* Wed Aug 07 2019 Leigh Scott <leigh123linux(a)gmail.com> - 4.2.2-3
- Rebuild for new ffmpeg version
Show replies by date