mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/ocaml: Drop the OCAMLOPTFLAG_G invocation
These days, `ocamlopt -h` asks you whether you meant --help instead, meaning that the $(shell ) invocation here isn't going end up containing '-g'. Make it unconditional, like it is in OCAMLCFLAGS already. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Christian Lindig <christian.lindig@cloud.com> Reviewed-by: Edwin Török <edwin.torok@cloud.com>
This commit is contained in:
1 parent
8ffcf184af
commit
126293eae6
1 file changed
+1
-2
@@ -11,8 +11,7 @@ OCAMLFIND ?= ocamlfind
|
||||
|
||||
CFLAGS += -fPIC -I$(shell ocamlc -where)
|
||||
|
||||
OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p')
|
||||
OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F -warn-error F
|
||||
OCAMLOPTFLAGS = -g -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F -warn-error F
|
||||
OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
|
||||
|
||||
VERSION := 4.1
|
||||
|
||||