Skip to content

Commit 42c4755

Browse files
committed
Makefile: Fix Makefile for brew
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent 05b3de1 commit 42c4755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ CGO_CFLAGS :=
7878
CGO_LDFLAGS :=
7979

8080
# Parse git current branch commit-hash
81-
GO_LDFLAGS += -X `go list ./xhyve`.GitCommit=`git rev-parse --short HEAD 2>/dev/null`
81+
GO_LDFLAGS ?= -X `go list ./xhyve`.GitCommit=`git rev-parse --short HEAD 2>/dev/null`
8282

8383

8484
# Set debug gcflag, or optimize ldflags
@@ -126,8 +126,8 @@ endif
126126
# Use mirage-block for pwritev|preadv
127127
HAVE_OCAML_QCOW := $(shell if ocamlfind query qcow uri >/dev/null 2>/dev/null ; then echo YES ; else echo NO; fi)
128128
ifeq ($(HAVE_OCAML_QCOW),YES)
129-
LIBEV_FILE=/usr/local/lib/libev.a
130-
LIBEV=$(shell if test -e $(LIBEV_FILE) ; then echo $(LIBEV_FILE) ; fi )
129+
LIBEV_FILE ?= /usr/local/lib/libev.a
130+
LIBEV = $(shell if test -e $(LIBEV_FILE) ; then echo $(LIBEV_FILE) ; fi )
131131
OCAML_WHERE := $(shell ocamlc -where)
132132
OCAML_LDLIBS := -L $(OCAML_WHERE) \
133133
$(shell ocamlfind query cstruct)/cstruct.a \

0 commit comments

Comments
 (0)