| |
@@ -1,3 +1,7 @@
|
| |
+ # Enable LTO
|
| |
+ %global optflags %{optflags} -flto
|
| |
+ %global build_ldflags %{build_ldflags} -flto
|
| |
+
|
| |
%global major 60
|
| |
|
| |
# Require libatomic for ppc
|
| |
@@ -12,7 +16,7 @@
|
| |
|
| |
Name: mozjs%{major}
|
| |
Version: 60.7.2
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: SpiderMonkey JavaScript library
|
| |
|
| |
License: MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2+ and AFL and ASL 2.0
|
| |
@@ -104,6 +108,11 @@
|
| |
rm -rf ../../modules/zlib
|
| |
|
| |
%build
|
| |
+ # Enable LTO
|
| |
+ export AR=%{_bindir}/gcc-ar
|
| |
+ export RANLIB=%{_bindir}/gcc-ranlib
|
| |
+ export NM=%{_bindir}/gcc-nm
|
| |
+
|
| |
export CFLAGS="%{optflags}"
|
| |
|
| |
export CXXFLAGS="$CFLAGS"
|
| |
@@ -181,6 +190,9 @@
|
| |
%{_includedir}/mozjs-%{major}/
|
| |
|
| |
%changelog
|
| |
+ * Sun Jun 23 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 60.7.2-2
|
| |
+ - Enable LTO
|
| |
+
|
| |
* Sat Jun 22 2019 Frantisek Zatloukal <fzatlouk@redhat.com> - 60.7.2-1
|
| |
- Update to 60.7.2
|
| |
|
| |
Is there any reason to not enable Link Time Optimization? Any performance boost matters there. No regression noticed.
COPR test build https://copr.fedorainfracloud.org/coprs/atim/mozjs60-performance/