[OCaml] Add -g on DEBUG_SYMBOLS=1, not ENABLE_OPTIMIZED.
[oota-llvm.git] / bindings / ocaml / Makefile.ocaml
index 26f82fa47f79dc964c4583c47bd8463392b22c2d..5e00cf59c4c28145543ac22ba0e2f33856f8d517 100644 (file)
@@ -81,7 +81,7 @@ OCAMLAFLAGS += $(patsubst %,-cclib %, \
 endif
 endif
 
-ifneq ($(ENABLE_OPTIMIZED),1)
+ifneq ($(DEBUG_SYMBOLS),1)
   OCAMLDEBUGFLAG := -g
 endif