tools/ocaml: use APPEND_CFLAGS and APPEND_LDFLAGS
PATCH 1/1 tools/ocaml: use APPEND_CFLAGS and APPEND_LDFLAGS
While implementing the --enable-rpath change I noticed that a ocaml build does not use APPEND_LDFLAGS. Make use of APPEND_CFLAGS and APPEND_LDFLAGS as it is done already in other places.
--- tools/ocaml/libs/xb/Makefile | 1 + tools/ocaml/libs/xc/Makefile | 1 + tools/ocaml/libs/xentoollog/Makefile | 1 + tools/ocaml/libs/xl/Makefile | 1 + tools/ocaml/test/Makefile | 1 + tools/ocaml/xenstored/Makefile | 2 ++ 6 files changed, 7 insertions(+)
tools/ocaml/libs/xb/Makefile +1 -0
@@ -5,6 +5,7 @@ include $(TOPLEVEL)/common.make CFLAGS += -I../mmap CFLAGS += $(CFLAGS_libxenctrl) # For xen_mb() CFLAGS += $(CFLAGS_xeninclude) +CFLAGS += $(APPEND_CFLAGS) OCAMLINCLUDE += -I ../mmap OCAMLOPTFLAGS += -for-pack Xenbus
tools/ocaml/libs/xc/Makefile +1 -0
@@ -3,6 +3,7 @@ XEN_ROOT=$(TOPLEVEL)/../.. include $(TOPLEVEL)/common.make CFLAGS += -I../mmap $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) +CFLAGS += $(APPEND_CFLAGS) OCAMLINCLUDE += -I ../mmap OBJS = xenctrl
tools/ocaml/libs/xentoollog/Makefile +1 -0
@@ -6,6 +6,7 @@ include $(TOPLEVEL)/common.make CFLAGS += -Wno-declaration-after-statement CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) +CFLAGS += $(APPEND_CFLAGS) OCAMLINCLUDE += OBJS = xentoollog
tools/ocaml/libs/xl/Makefile +1 -0
@@ -7,6 +7,7 @@ CFLAGS += -Wno-unused -Wno-declaration-after-statement CFLAGS += $(CFLAGS_libxenlight) CFLAGS += -I ../xentoollog +CFLAGS += $(APPEND_CFLAGS) OBJS = xenlight INTF = xenlight.cmi
tools/ocaml/test/Makefile +1 -0
@@ -3,6 +3,7 @@ OCAML_TOPLEVEL = $(CURDIR)/.. include $(OCAML_TOPLEVEL)/common.make CFLAGS += $(CFLAGS_libxenlight) +CFLAGS += $(APPEND_CFLAGS) LIBS_xenlight = $(LDLIBS_libxenlight) OCAMLINCLUDE += \
tools/ocaml/xenstored/Makefile +2 -0
@@ -7,7 +7,9 @@ CFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_CFLAGS) LDFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_LIBS) CFLAGS += $(CFLAGS-y) +CFLAGS += $(APPEND_CFLAGS) LDFLAGS += $(LDFLAGS-y) +LDFLAGS += $(APPEND_LDFLAGS) OCAMLINCLUDE += \ -I $(OCAML_TOPLEVEL)/libs/xb \
Looks good to me.
Quoted 93 lines · Olaf Hering
While implementing the --enable-rpath change I noticed that a ocaml build does not use
APPEND_LDFLAGS. Make use ofAPPEND_CFLAGSandAPPEND_LDFLAGSas it is done already in other places.Signed-off-by Olaf Hering <[email protected]>Cc David Scott <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Ian Campbell <[email protected]>Cc Wei Liu <[email protected]>---
tools/ocaml/libs/xb/Makefile | 1 + tools/ocaml/libs/xc/Makefile | 1 + tools/ocaml/libs/xentoollog/Makefile | 1 + tools/ocaml/libs/xl/Makefile | 1 + tools/ocaml/test/Makefile | 1 + tools/ocaml/xenstored/Makefile | 2 ++ 6 files changed, 7 insertions(+)tools/ocaml/libs/xb/Makefile +0
-0@@ -5,6 +5,7 @@ include $(TOPLEVEL)/common.makeCFLAGS += -I../mmap
CFLAGS += $(CFLAGS_libxenctrl) # Forxen_mb()
CFLAGS += $(CFLAGS_xeninclude)
+CFLAGS += $(APPEND_CFLAGS)
OCAMLINCLUDE += -I ../mmap
OCAMLOPTFLAGS += -for-pack Xenbustools/ocaml/libs/xc/Makefile +0
-0@@ -3,6 +3,7 @@ XEN_ROOT=$(TOPLEVEL)/../..include $(TOPLEVEL)/common.make
CFLAGS += -I../mmap $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) +CFLAGS += $(APPEND_CFLAGS)
OCAMLINCLUDE += -I ../mmapOBJS = xenctrl
tools/ocaml/libs/xentoollog/Makefile +0
-0@@ -6,6 +6,7 @@ include $(TOPLEVEL)/common.makeCFLAGS += -Wno-declaration-after-statement
CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) +CFLAGS += $(APPEND_CFLAGS)
OCAMLINCLUDE +=OBJS = xentoollog
tools/ocaml/libs/xl/Makefile +0
-0@@ -7,6 +7,7 @@ CFLAGS += -Wno-unused -Wno-declaration-after-statement CFLAGS += $(CFLAGS_libxenlight)CFLAGS += -I ../xentoollog
+CFLAGS += $(APPEND_CFLAGS)OBJS = xenlight
INTF = xenlight.cmitools/ocaml/test/Makefile +0
-0@@ -3,6 +3,7 @@ OCAML_TOPLEVEL = $(CURDIR)/..include $(OCAML_TOPLEVEL)/common.make
CFLAGS += $(CFLAGS_libxenlight)
+CFLAGS += $(APPEND_CFLAGS)LIBS_xenlight= $(LDLIBS_libxenlight)OCAMLINCLUDE += \
tools/ocaml/xenstored/Makefile +2
-0@@ -7,7 +7,9 @@ CFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_CFLAGS) LDFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_LIBS) CFLAGS += $(CFLAGS-y) +CFLAGS += $(APPEND_CFLAGS) LDFLAGS += $(LDFLAGS-y) +LDFLAGS += $(APPEND_LDFLAGS) OCAMLINCLUDE += \ -I $(OCAML_TOPLEVEL)/libs/xb \
Quoted 3 lines · Dave Scott
Looks good to me.
Acked-by David Scott <[email protected]>
Thank you.
On that basis, Released-Acked-by: Konrad Rzeszutek Wilk <[email protected]>
Quoted 97 lines · Olaf Hering
Quoted 94 lines
While implementing the --enable-rpath change I noticed that a ocaml build does not use
APPEND_LDFLAGS. Make use ofAPPEND_CFLAGSandAPPEND_LDFLAGSas it is done already in other places.Signed-off-by Olaf Hering <[email protected]>Cc David Scott <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Ian Campbell <[email protected]>Cc Wei Liu <[email protected]>---
tools/ocaml/libs/xb/Makefile | 1 + tools/ocaml/libs/xc/Makefile | 1 + tools/ocaml/libs/xentoollog/Makefile | 1 + tools/ocaml/libs/xl/Makefile | 1 + tools/ocaml/test/Makefile | 1 + tools/ocaml/xenstored/Makefile | 2 ++ 6 files changed, 7 insertions(+)tools/ocaml/libs/xb/Makefile +0
-0@@ -5,6 +5,7 @@ include $(TOPLEVEL)/common.makeCFLAGS += -I../mmap
CFLAGS += $(CFLAGS_libxenctrl) # Forxen_mb()
CFLAGS += $(CFLAGS_xeninclude)
+CFLAGS += $(APPEND_CFLAGS)
OCAMLINCLUDE += -I ../mmap
OCAMLOPTFLAGS += -for-pack Xenbustools/ocaml/libs/xc/Makefile +0
-0@@ -3,6 +3,7 @@ XEN_ROOT=$(TOPLEVEL)/../..include $(TOPLEVEL)/common.make
CFLAGS += -I../mmap $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) +CFLAGS += $(APPEND_CFLAGS)
OCAMLINCLUDE += -I ../mmapOBJS = xenctrl
tools/ocaml/libs/xentoollog/Makefile +0
-0@@ -6,6 +6,7 @@ include $(TOPLEVEL)/common.makeCFLAGS += -Wno-declaration-after-statement
CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) +CFLAGS += $(APPEND_CFLAGS)
OCAMLINCLUDE +=OBJS = xentoollog
tools/ocaml/libs/xl/Makefile +0
-0@@ -7,6 +7,7 @@ CFLAGS += -Wno-unused -Wno-declaration-after-statement CFLAGS += $(CFLAGS_libxenlight)CFLAGS += -I ../xentoollog
+CFLAGS += $(APPEND_CFLAGS)OBJS = xenlight
INTF = xenlight.cmitools/ocaml/test/Makefile +0
-0@@ -3,6 +3,7 @@ OCAML_TOPLEVEL = $(CURDIR)/..include $(OCAML_TOPLEVEL)/common.make
CFLAGS += $(CFLAGS_libxenlight)
+CFLAGS += $(APPEND_CFLAGS)LIBS_xenlight= $(LDLIBS_libxenlight)OCAMLINCLUDE += \
tools/ocaml/xenstored/Makefile +2
-0@@ -7,7 +7,9 @@ CFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_CFLAGS) LDFLAGS-$(CONFIG_SYSTEMD) += $(SYSTEMD_LIBS) CFLAGS += $(CFLAGS-y) +CFLAGS += $(APPEND_CFLAGS) LDFLAGS += $(LDFLAGS-y) +LDFLAGS += $(APPEND_LDFLAGS) OCAMLINCLUDE += \ -I $(OCAML_TOPLEVEL)/libs/xb \
Ian Campbell
AppliedQuoted 8 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Dave Scott
Looks good to me.
Acked-by David Scott <[email protected]>Thank you.
On that basis, Released-Acked-by: Konrad Rzeszutek Wilk <[email protected]>
Applied.