SHA256
1
0
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:
Pascal Bleser 2011-06-02 06:41:32 +00:00 committed by Git OBS Bridge
parent f0df440d40
commit 364c343fb8

View File

@ -20,7 +20,11 @@ and is fairly complete.
%setup -q
%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 -D -m 0755 cpuid "%{buildroot}%{_bindir}/cpuid"