Yup that's works great

diff --git a/maint/config/kernel.m4 b/maint/config/kernel.m4
index 5c527d5..f287d29 100644
--- a/maint/config/kernel.m4
+++ b/maint/config/kernel.m4
@@ -352,7 +352,7 @@ AC_DEFUN([AX_KERNEL_FEATURES],
        dnl certain Fedora FC5 kernel header files throw extra (spurious)
        dnl warnings, which -Wno-pointer-sign silences.
         tmp_cflags=$CFLAGS
-       CFLAGS="$CFLAGS -Werror -Wno-pointer-sign"
+       CFLAGS="$CFLAGS -Werror -Wno-pointer-sign -Wno-strict-aliasing
-Wno-strict-aliasing=2"
        dnl if this test passes, there is a struct dentry* argument
        AC_MSG_CHECKING(if statfs callbacks' arguments in kernel has
struct dentry argument)
        dnl if this test passes, the kernel has it


This doesn't quite fix the problem I looked at it outside rpmbuild and
it worked.
With rhel5 in an rpmbuild by default the -O2 gcc flag is passed when
this happens the -fstrict-aliasing flag is enabled and putting the
-Wno-strict-aliasing doesn't quite work. *sigh*...

- David Brown
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to