turn off strict aliasing for Rawhide; glib's mutex functions fail
This commit is contained in:
parent
bb17862580
commit
e42beec285
@ -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
13
no-strict-aliasing.patch
Normal 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])
|
Loading…
Reference in New Issue
Block a user