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:
parent
0ab8920e60
commit
377db7292d
11
librtas.spec
11
librtas.spec
@ -1,7 +1,7 @@
|
||||
Summary: Libraries to provide access to RTAS calls and RTAS events
|
||||
Name: librtas
|
||||
Version: 1.3.9
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
URL: http://librtas.ozlabs.org
|
||||
License: CPL
|
||||
Group: System Environment/Libraries
|
||||
@ -38,7 +38,11 @@ developing programs using librtas.
|
||||
%patch1 -p1 -b .ln
|
||||
|
||||
%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
|
||||
mkdir -p %{buildroot}/%{_libdir}
|
||||
@ -72,6 +76,9 @@ mkdir -p %{buildroot}/%{_libdir}
|
||||
%{_libdir}/libofdt.so
|
||||
|
||||
%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
|
||||
- Update to latest upstream 1.3.9
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user