summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-extra/gdesklets-core/files/gdesklets-core-0.36.3-CFLAGS.patch')
-rw-r--r--gnome-extra/gdesklets-core/files/gdesklets-core-0.36.3-CFLAGS.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnome-extra/gdesklets-core/files/gdesklets-core-0.36.3-CFLAGS.patch b/gnome-extra/gdesklets-core/files/gdesklets-core-0.36.3-CFLAGS.patch
new file mode 100644
index 000000000000..3abfb08b8ec0
--- /dev/null
+++ b/gnome-extra/gdesklets-core/files/gdesklets-core-0.36.3-CFLAGS.patch
@@ -0,0 +1,37 @@
+=== modified file 'configure.ac'
+--- configure.ac 2011-02-15 10:13:11 +0000
++++ configure.ac 2011-04-08 01:27:57 +0000
+@@ -9,6 +9,7 @@
+ AC_CONFIG_MACRO_DIR([macros])
+ AC_CONFIG_FILES([Makefile])
+ AM_MAINTAINER_MODE
++: ${CFLAGS="-Os -g"}
+
+ dnl Required programs
+ AC_PROG_CC
+@@ -21,14 +22,12 @@
+ AC_PROG_LN_S
+ AC_PROG_MAKE_SET
+
+-CFLAGS="-Os -g"
+-
+ AC_ARG_ENABLE(debug,AS_HELP_STRING([--enable-debug],[Maximum debugging]),
+ set_debug="$enableval",[set_debug=no])
+ AC_MSG_CHECKING(for more debugging including macro expansion)
+ if test "$GCC" = "yes" -a "$set_debug" != "no"; then
+ AC_MSG_RESULT(yes)
+- CFLAGS="-O0 -g3"
++ CFLAGS="$CFLAGS -O0 -g3"
+ else
+ AC_MSG_RESULT(no)
+ fi
+@@ -39,7 +38,7 @@
+ AC_MSG_CHECKING(for more warnings, including -Werror)
+ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
+ AC_MSG_RESULT(yes)
+- CFLAGS="\
++ CFLAGS="$CFLAGS \
+ -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
+ -Wmissing-declarations -Wredundant-decls -Wunreachable-code \
+ -Wpointer-arith -Wcast-align -Wsign-compare -ansi \
+