Disable "-Werror=format-security" compilation option properly.

Note that this is the temporary workaround to build
packages. We should fix real issue in our code.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
This commit is contained in:
Vasant Hegde 2014-03-06 17:03:11 +05:30
parent 0ab8920e60
commit 377db7292d

View File

@ -1,7 +1,7 @@
Summary: Libraries to provide access to RTAS calls and RTAS events Summary: Libraries to provide access to RTAS calls and RTAS events
Name: librtas Name: librtas
Version: 1.3.9 Version: 1.3.9
Release: 1%{?dist} Release: 2%{?dist}
URL: http://librtas.ozlabs.org URL: http://librtas.ozlabs.org
License: CPL License: CPL
Group: System Environment/Libraries Group: System Environment/Libraries
@ -38,7 +38,11 @@ developing programs using librtas.
%patch1 -p1 -b .ln %patch1 -p1 -b .ln
%build %build
%{__make} CFLAGS="%{optflags} -fPIC -DPIC -I." # disable "-Werror=format-security" checking gcc option until we fix
# these errors in our code.
CFLAG="%{optflags} -fPIC -DPIC -I."
CFLAG=`echo $CFLAG | sed 's/-Werror=format-security//'`
%{__make} $CFLAGS
%install %install
mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_libdir}
@ -72,6 +76,9 @@ mkdir -p %{buildroot}/%{_libdir}
%{_libdir}/libofdt.so %{_libdir}/libofdt.so
%changelog %changelog
* Thu Mar 06 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.9-2
- Disable "-Werror=format-security" gcc option
* Tue Mar 04 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.9 * Tue Mar 04 2014 Vasant Hegde <hegdevasant@fedoraproject.org> - 1.3.9
- Update to latest upstream 1.3.9 - Update to latest upstream 1.3.9