diff --git a/src/build/Common.gmake b/src/build/Common.gmake
index dfe8dfc73bcee3cc220298696e70118681dfa373..cfe4c2b802b2714f9fa7f09ed93d376f7e93cf00 100644
--- a/src/build/Common.gmake
+++ b/src/build/Common.gmake
@@ -481,6 +481,7 @@ else # RELEASE
  # This also meant that -O3 wouldn't work either.
  CFLAGS	:= -O3 -Wno-unused-result -fomit-frame-pointer -ffast-math -funroll-loops $(CFLAGS)
 endif
+CFLAGS += -fno-delete-null-pointer-checks
 
 -include targets.mk
 -include $(SRC_ROOT)/build/rules.mk