fix building with -fno-strict-aliasing

This commit is contained in:
Nils Philippsen 2013-04-18 14:01:07 +02:00
parent 923222465f
commit 1c49a00f79

View File

@ -21,7 +21,7 @@
Summary: Scanner access software
Name: sane-backends
Version: 1.0.23
Release: 7%{?dist}
Release: 8%{?dist}
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
# Tools are GPLv2+, docs are public domain
# see LICENSE for details
@ -139,10 +139,11 @@ This package contains backend drivers to access digital cameras through SANE.
%patch6 -p1 -b .coolscan-multiscan
%build
CFLAGS="%optflags -fno-strict-aliasing"
%if ! 0%{?_hardened_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"
CFLAGS="$CFLAGS -fPIC"
LDFLAGS="-pie"
%endif
%configure \
@ -219,6 +220,9 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
%{_libdir}/sane/*gphoto2.so.*
%changelog
* Thu Apr 18 2013 Nils Philippsen <nils@redhat.com> - 1.0.23-8
- fix building with -fno-strict-aliasing
* Fri Feb 01 2013 Nils Philippsen <nils@redhat.com> - 1.0.23-7
- filter out backend driver provides/requires
- update latex build dep