This reverts commit
b43501451733193b265de30fd79a764363a2a473.
Due to the implementation of cc-option, the check is always true,
which means build for gcc that doesn't have -Og support is broken.
This patch can be reapplied once we have fixed cc-option.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
SHLIB_libxenvchan = $(SHDEPS_libxenvchan) -Wl,-rpath-link=$(XEN_LIBVCHAN)
ifeq ($(debug),y)
-CFLAGS += -fno-omit-frame-pointer
-# Use optimizations compatible with debugging otherwise disable optimizations
-ifneq ($(call cc-option,$(CC),-Og,n),n)
-CFLAGS += -Og
-else
-CFLAGS += -O0
-endif
+# Disable optimizations
+CFLAGS += -O0 -fno-omit-frame-pointer
# But allow an override to -O0 in case Python enforces -D_FORTIFY_SOURCE=<n>.
PY_CFLAGS += $(PY_NOOPT_CFLAGS)
else