[sane-backends] fix building with -fno-strict-aliasing
Nils Philippsen
nphilipp at fedoraproject.org
Thu Apr 18 12:30:19 UTC 2013
commit 1c49a00f7931be0cebe8f44041383ba2467bb04f
Author: Nils Philippsen <nils at redhat.com>
Date: Thu Apr 18 14:01:07 2013 +0200
fix building with -fno-strict-aliasing
sane-backends.spec | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/sane-backends.spec b/sane-backends.spec
index 67a30fa..0ba8750 100644
--- a/sane-backends.spec
+++ b/sane-backends.spec
@@ -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 at redhat.com> - 1.0.23-8
+- fix building with -fno-strict-aliasing
+
* Fri Feb 01 2013 Nils Philippsen <nils at redhat.com> - 1.0.23-7
- filter out backend driver provides/requires
- update latex build dep
More information about the scm-commits
mailing list