diff --git a/Rakefile b/Rakefile
index df122a5..31465e6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -278,7 +278,7 @@ task(:config) do
     if "yes" == @options["debug"]
       @options["cflags"] << " -g -DDEBUG"
     else
-      @options["cflags"] << " -DNDEBUG"
+      @options["cflags"] << " -g -DNDEBUG"
     end
 
     # Get revision
