[Tracker] patch to make it build using sun studio
- From: jerry tan <Jerry Tan Sun COM>
- To: Tracker-List <tracker-list gnome org>
- Subject: [Tracker] patch to make it build using sun studio
- Date: Fri, 13 Jul 2007 11:31:36 +0800
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
####################################################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]