diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b07bea91d6e137741d009c8b6fde93916b02f0b5..02878693c2429d03fb0122aac4c22b38731cd40a 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -175,12 +175,6 @@ CFLAGS := $(CFLAGS) $(EXTRA_CFLAGS)
 CXXFLAGS := $(CXXFLAGS) $(EXTRA_CFLAGS) $(EXTRA_CXXFLAGS)
 LDFLAGS := $(LDFLAGS) -L$(PREFIX)/lib $(EXTRA_LDFLAGS)
 
-ifndef WITH_OPTIMIZATION
-DBGOPTIMFLAGS = -g -O0
-else
-DBGOPTIMFLAGS = -g -O2
-endif
-
 # Do not export those! Use HOSTVARS.
 
 # Do the FPU detection, after we have figured out our compilers and flags.