forked from pool/cpuid
add workaround for -Werror=format-security false positives on Mandriva
OBS-URL: https://build.opensuse.org/package/show/utilities/cpuid?expand=0&rev=2
This commit is contained in:
parent
f0df440d40
commit
364c343fb8
@ -20,7 +20,11 @@ and is fairly complete.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__make CFLAGS="%{optflags} -Wall"
|
# remove -Werror=format-security which is used on Mandriva, as it produces
|
||||||
|
# a false positive compiler error on several printf calls:
|
||||||
|
CFLAGS=$(echo "%{optflags} -Wall"| %__sed 's/-Werror=format-security//g')
|
||||||
|
|
||||||
|
%__make CFLAGS="$CFLAGS"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__install -D -m 0755 cpuid "%{buildroot}%{_bindir}/cpuid"
|
%__install -D -m 0755 cpuid "%{buildroot}%{_bindir}/cpuid"
|
||||||
|
Loading…
Reference in New Issue
Block a user