File catdoc-0.94.2-optflags.patch of Package catdoc

Description: Use rpm optflags.
Author: Kyrill Detinov <lazy.kent@opensuse.org>
Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -100,9 +100,9 @@ AC_C_CONST
 dnl Checks for library functions.
 AC_FUNC_SETVBUF_REVERSED
 
-if test "$GCC" = "yes"; then
-	CFLAGS="-g -O2 -Wall"
-fi
+#if test "$GCC" = "yes"; then
+#	CFLAGS="-g -O2 -Wall"
+#fi
 
 AC_DEFINE_UNQUOTED([SOURCE_CHARSET],"$sourcecharset",[Character encoding used by default for 8-bit source files])
 AC_DEFINE_UNQUOTED([TARGET_CHARSET],"$targetcharset",[Output character encoding used by default, if impossible to determine encoding from locale])
Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -1499,9 +1499,9 @@ EOF
 fi
 
 
-if test "$GCC" = "yes"; then
-	CFLAGS="-g -O2 -Wall"
-fi
+#if test "$GCC" = "yes"; then
+#	CFLAGS="-g -O2 -Wall"
+#fi
 
 cat >> confdefs.h <<EOF
 #define SOURCE_CHARSET "$sourcecharset"
openSUSE Build Service is sponsored by