mxcl/homebrew — Issue #9279: protobuf is built in debug mode
Author: thesamet
Created: 2011-12-26 04:35:03+00:00
State: open

protobuf's ./configure script adds "-DNDEBUG" to CXXFLAGS to ensure certain assertions don't run in release builds. See http://code.google.com/p/protobuf/source/browse/trunk/configure.ac#61 (line 61).

Something in Homebrew (perhaps env.rb) overrides CXXFLAGS, so the -DNDEBUG does not make it the compiler invocation in the build stage.