turn off strict aliasing for Rawhide; glib's mutex functions fail

This commit is contained in:
Daniel Williams 2008-02-08 03:15:08 +00:00
parent bb17862580
commit e42beec285
2 changed files with 15 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Source1: nm-applet-%{version}.%{applet_snapshot}.tar.gz
Source2: nm-system-settings.conf
Patch1: NetworkManager-0.6.5-fixup-internal-applet-build.patch
Patch2: nm-applet-0.7.0-disable-stuff.patch
Patch3: no-strict-aliasing.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
PreReq: chkconfig
@ -132,6 +133,7 @@ NetworkManager functionality from applications that use glib.
tar -xzf %{SOURCE1}
%patch1 -p1 -b .buildfix
%patch2 -p1 -b .disable-stuff
%patch3 -p1 -b .no-strict-aliasing
%build
# Even though we don't require named, we still build with it

13
no-strict-aliasing.patch Normal file
View File

@ -0,0 +1,13 @@
diff -up NetworkManager-0.7.0/configure.in.foo NetworkManager-0.7.0/configure.in
--- NetworkManager-0.7.0/configure.in.foo 2008-02-07 22:12:04.000000000 -0500
+++ NetworkManager-0.7.0/configure.in 2008-02-07 22:12:57.000000000 -0500
@@ -238,7 +238,8 @@ if test "$GCC" = "yes" -a "$set_more_war
for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wstrict-prototypes \
- -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare; do
+ -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
+ -Wno-strict-aliasing; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])