fix building with -fno-strict-aliasing
This commit is contained in:
parent
923222465f
commit
1c49a00f79
@ -21,7 +21,7 @@
|
|||||||
Summary: Scanner access software
|
Summary: Scanner access software
|
||||||
Name: sane-backends
|
Name: sane-backends
|
||||||
Version: 1.0.23
|
Version: 1.0.23
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
||||||
# Tools are GPLv2+, docs are public domain
|
# Tools are GPLv2+, docs are public domain
|
||||||
# see LICENSE for details
|
# see LICENSE for details
|
||||||
@ -139,10 +139,11 @@ This package contains backend drivers to access digital cameras through SANE.
|
|||||||
%patch6 -p1 -b .coolscan-multiscan
|
%patch6 -p1 -b .coolscan-multiscan
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
CFLAGS="%optflags -fno-strict-aliasing"
|
||||||
%if ! 0%{?_hardened_build}
|
%if ! 0%{?_hardened_build}
|
||||||
# use PIC/PIE because SANE-enabled software is likely to deal with data coming
|
# use PIC/PIE because SANE-enabled software is likely to deal with data coming
|
||||||
# from untrusted sources (client <-> saned via network)
|
# from untrusted sources (client <-> saned via network)
|
||||||
CFLAGS="-fPIC %optflags -fno-strict-aliasing"
|
CFLAGS="$CFLAGS -fPIC"
|
||||||
LDFLAGS="-pie"
|
LDFLAGS="-pie"
|
||||||
%endif
|
%endif
|
||||||
%configure \
|
%configure \
|
||||||
@ -219,6 +220,9 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
|
|||||||
%{_libdir}/sane/*gphoto2.so.*
|
%{_libdir}/sane/*gphoto2.so.*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Feb 01 2013 Nils Philippsen <nils@redhat.com> - 1.0.23-7
|
||||||
- filter out backend driver provides/requires
|
- filter out backend driver provides/requires
|
||||||
- update latex build dep
|
- update latex build dep
|
||||||
|
Loading…
Reference in New Issue
Block a user