build with -fno-strict-aliasing use PIC/PIE because SANE-enabled software
is likely to deal with data coming from untrusted sources (client <-> saned via network)
This commit is contained in:
parent
dec6ea9071
commit
00cdd7b9ef
@ -1,7 +1,7 @@
|
||||
Summary: Scanner access software
|
||||
Name: sane-backends
|
||||
Version: 1.0.21
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
||||
# Tools are GPLv2+, docs are public domain
|
||||
# see LICENSE for details
|
||||
@ -90,6 +90,10 @@ want to access digital cameras.
|
||||
%patch100 -p1 -b .automake
|
||||
|
||||
%build
|
||||
# use PIC/PIE because SANE-enabled software is likely to deal with data coming
|
||||
# from untrusted sources (client <-> saned via network)
|
||||
CFLAGS="-fPIC %optflags -fno-strict-aliasing"
|
||||
LDFLAGS="-pie"
|
||||
%configure \
|
||||
--with-gphoto2=%{_prefix} \
|
||||
--with-docdir=%{_docdir}/%{name}-%{version} \
|
||||
@ -158,6 +162,11 @@ rm -rf %{buildroot}
|
||||
%{_libdir}/pkgconfig/sane-backends.pc
|
||||
|
||||
%changelog
|
||||
* Fri Jun 25 2010 Nils Philippsen <nils@redhat.com> - 1.0.21-3
|
||||
- build with -fno-strict-aliasing
|
||||
- use PIC/PIE because SANE-enabled software is likely to deal with data coming
|
||||
from untrusted sources (client <-> saned via network)
|
||||
|
||||
* Mon Jun 07 2010 Nils Philippsen <nils@redhat.com>
|
||||
- rectify devel subpackage description
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user