Upstream-Status: Pending

Index: b/gen-cc
===================================================================
--- a/gen-cc
+++ b/gen-cc
@@ -15,6 +15,11 @@
 	shift
 	shift
 	
+	echo $CC \$MODE -o \$BASE.o \$BASE.$EXT \\
+	        -MMD -MF \$DEPFILE -MP -MQ \$BASE.o \\
+	        $CPPFLAGS \\
+	        $CFLAGS \\
+	        "\$@"
 	$CC \$MODE -o \$BASE.o \$BASE.$EXT \\
 	        -MMD -MF \$DEPFILE -MP -MQ \$BASE.o \\
 	        $CPPFLAGS \\
Index: b/wvrules-posix.mk
===================================================================
--- a/wvrules-posix.mk
+++ b/wvrules-posix.mk
@@ -35,11 +35,6 @@
 # Default compiler we use for linking
 WVLINK_CC = $(CXX)
 
-ifneq ("$(enable_optimization)", "no")
-  CXXFLAGS+=-O2
-  CFLAGS+=-O2
-endif
-
 ifneq ("$(enable_warnings)", "no")
   CXXFLAGS+=-Wall -Woverloaded-virtual
   CFLAGS+=-Wall
