Sun Studio compiler does not accept '-Wall' CFLAGS when build.
so add this patch to make tracker trunk build on solaris with sun studio.
Index: configure.ac
===================================================================
--- configure.ac (revision 655)
+++ configure.ac (working copy)
@@ -115,14 +115,17 @@
AC_HELP_STRING([--disable-warnings], [disable GCC warnings]),,
[enable_warnings=yes])
-if test "x$enable_warnings" = "xyes"; then
- CFLAGS="\
- -Wall \
- -Wchar-subscripts \
- -Wnested-externs \
- -Wpointer-arith \
- -Wsign-compare \
- $CFLAGS"
+dnl Only use -Wall if we have gcc
+if test "x$GCC" = "xyes"; then
+ if test "x$enable_warnings" = "xyes"; then
+ CFLAGS="\
+ -Wall \
+ -Wchar-subscripts \
+ -Wnested-externs \
+ -Wpointer-arith \
+ -Wsign-compare \
+ $CFLAGS"
+ fi
fi
####################################################################
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list