- Disable valgrind support for all architectures if not
explicitely enabled by a macro (boo#963979). OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=210
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libdrm
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -48,9 +48,11 @@ BuildRequires: pkgconfig
|
||||
BuildRequires: util-macros-devel
|
||||
BuildRequires: pkgconfig(pciaccess) >= 0.10
|
||||
BuildRequires: pkgconfig(pthread-stubs)
|
||||
%if 0%{?with_valgrind_support:1}
|
||||
%ifarch %ix86 x86_64 ppc ppc64 ppc64le s390x %arm
|
||||
BuildRequires: pkgconfig(valgrind)
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
The package contains the userspace interface to the kernel DRM
|
||||
@@ -188,6 +190,10 @@ autoreconf -fi
|
||||
%configure --with-pic \
|
||||
%ifnarch %ix86 x86_64 ppc ppc64 ppc64le s390x %arm
|
||||
--disable-valgrind \
|
||||
%else
|
||||
%if 0%{!?with_valgrind_support:1}
|
||||
--disable-valgrind \
|
||||
%endif
|
||||
%endif
|
||||
%ifarch %arm
|
||||
--enable-omap-experimental-api \
|
||||
|
Reference in New Issue
Block a user