From c8542aa4e956d0f117e09f13a5c2d6d8f053b95f Mon Sep 17 00:00:00 2001 From: mharris Date: Fri, 28 Oct 2005 03:22:10 +0000 Subject: [PATCH] - Work around pointer aliasing problem with -fno-strict-aliasing --- libxkbfile.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libxkbfile.spec b/libxkbfile.spec index 777fcf4..28c8cde 100644 --- a/libxkbfile.spec +++ b/libxkbfile.spec @@ -1,4 +1,3 @@ - Summary: X.Org X11 libxkbfile runtime library Name: libxkbfile Version: 0.99.1 @@ -12,7 +11,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: xorg-x11-proto-devel BuildRequires: libX11-devel - Conflicts: XFree86-libs, xorg-x11-libs %description @@ -23,7 +21,6 @@ Summary: X.Org X11 libxkbfile development package Group: Development/Libraries Requires: %{name} = %{version}-%{release} - Conflicts: XFree86-devel, xorg-x11-devel %description devel @@ -36,7 +33,9 @@ X.Org X11 libxkbfile development package %define with_static 0 %build - +# FIXME: We use -fno-strict-aliasing, to work around the following bug: +# maprules.c:1373: warning: dereferencing type-punned pointer will break strict-aliasing rules) +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure \ %if ! %{with_static} --disable-static @@ -82,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/pkgconfig/xkbfile.pc %changelog +* Thu Oct 27 2005 Mike A. Harris 0.99.1-2 +- Work around pointer aliasing problem with -fno-strict-aliasing + * Mon Oct 24 2005 Mike A. Harris 0.99.1-1 - Updated libxkbfile to version 0.99.1 from X11R7 RC1