mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
spec: Use --enable-werror on RHEL
As RHEL provides a stable tool chain, we don't have to worry about frequent changes in reported compiler warnings (which prevents us from enabling -Werror unconditionally).
This commit is contained in:
parent
a718d28279
commit
d5cd5bf031
@ -355,6 +355,14 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
# RHEL releases provide stable tool chains and so it is safe to turn
|
||||||
|
# compiler warning into errors without being worried about frequent
|
||||||
|
# changes in reported warnings
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%define enable_werror --enable-werror
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
Summary: Library providing a simple virtualization API
|
Summary: Library providing a simple virtualization API
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
@ -1397,6 +1405,7 @@ of recent versions of Linux (and other OSes).
|
|||||||
%{with_packager_version} \
|
%{with_packager_version} \
|
||||||
--with-qemu-user=%{qemu_user} \
|
--with-qemu-user=%{qemu_user} \
|
||||||
--with-qemu-group=%{qemu_group} \
|
--with-qemu-group=%{qemu_group} \
|
||||||
|
%{?enable_werror} \
|
||||||
%{init_scripts}
|
%{init_scripts}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
gzip -9 ChangeLog
|
gzip -9 ChangeLog
|
||||||
|
Loading…
Reference in New Issue
Block a user