error('When using GCC, version 4.4.6 or later is required.')
endif
-# Define DEBUG for debug and debugoptimized builds
-if get_option('buildtype').startswith('debug')
+# Define DEBUG for debug builds only (debugoptimized is not included on this one)
+if get_option('buildtype') == 'debug'
pre_args += '-DDEBUG'
endif