1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/spec/lvm2.spec
Zdenek Kabelac 0168de83de spec: disable LTO
Currently there is not much gain in using LTO when building
testing rpms
2024-04-12 01:27:26 +02:00

35 lines
1.1 KiB
RPMSpec

# Copyright (C) 2013-2014 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# NB. This specfile is a work in progress. It is currently used by the
# continuous integration system driven by nix and hydra to create and test RPMs
# on Fedora, CentOS and RHEL systems. It is not yet ready for deployment of LVM
# on those systems.
# A macro to pull in an include file from an appropriate location.
%global import() %%include %%(test -e %%{S:%%1} && echo %%{S:%%1} || echo %%{_sourcedir}/%%1)
%import source.inc
%if %{lvm2_testsuite_build} == 0
# Disable global optimization when building on machine with installed lvm2-testsuited
%global _lto_cflags %nil
%endif
# PatchN: nnn.patch goes here
%prep
%setup -q -n LVM2.%{version}
%import build.inc
%import packages.inc
%changelog