]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
- Make CFLAGS overwritable
authorJean Guyader <jean.guyader@eu.citrix.com>
Mon, 17 Aug 2009 16:30:01 +0000 (17:30 +0100)
committerJean Guyader <jean.guyader@eu.citrix.com>
Mon, 17 Aug 2009 16:30:01 +0000 (17:30 +0100)
 - Use LDFLAGS when we link

common.make

index 4c53e9014d178e271ba517e8f8efaa08fb09668f..3b14dfbcc8ddc57f5e4f025886b116df5e37a5aa 100644 (file)
@@ -6,14 +6,14 @@ OCAMLDEP ?= ocamldep
 OCAMLLEX ?= ocamllex
 OCAMLYACC ?= ocamlyacc
 
-CFLAGS = -Wall -fPIC -O2
+CFLAGS ?= -Wall -fPIC -O2
 
 XEN_ROOT ?= $(TOPLEVEL)/../xen-unstable.hg
 XEN_DIST_ROOT ?= $(XEN_ROOT)/dist/install
 CFLAGS += -I$(XEN_DIST_ROOT)/usr/include
 
 OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^  *\(-g\) .*/\1/p')
-OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -dtypes $(OCAMLINCLUDE) -cc $(CC) -w F -warn-error F
+OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -cc $(CC) -w F -warn-error F
 OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
 
 #LDFLAGS = -cclib -L./