build: Add -g flag to ocamlopt.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 4 Jan 2016 16:48:40 +0000 (11:48 -0500)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 4 Jan 2016 16:49:16 +0000 (16:49 +0000)
Modern ocamlopt supports the -g flag fine (very old versions did not).

virt-top/Makefile.in

index 98e6647..e149b26 100755 (executable)
@@ -68,7 +68,7 @@ OCAMLCFLAGS   := -g -warn-error A-3
 OCAMLCLIBS     := -linkpkg
 
 OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
 OCAMLCLIBS     := -linkpkg
 
 OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
-OCAMLOPTFLAGS  := -warn-error A-3
+OCAMLOPTFLAGS  := $(OCAMLCFLAGS)
 OCAMLOPTLIBS   := $(OCAMLCLIBS)
 
 BYTE_TARGETS   := virt-top
 OCAMLOPTLIBS   := $(OCAMLCLIBS)
 
 BYTE_TARGETS   := virt-top