Added
Link Here
|
0 |
- |
1 |
From fc345ccc1effcf89239aaf452071a8cf35b43934 Mon Sep 17 00:00:00 2001 |
|
|
2 |
From: Roger Pau Monne <roger.pau@citrix.com> |
3 |
Date: Tue, 6 Jul 2021 16:03:24 +0200 |
4 |
Subject: [PATCH] tools/go: honor append build flags |
5 |
MIME-Version: 1.0 |
6 |
Content-Type: text/plain; charset=UTF-8 |
7 |
Content-Transfer-Encoding: 8bit |
8 |
|
9 |
Make the go build use APPEND_{C/LD}FLAGS when necessary, just like |
10 |
other parts od the build. |
11 |
|
12 |
Reported-by: Ting-Wei Lan <lantw44@gmail.com> |
13 |
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> |
14 |
--- |
15 |
tools/golang/xenlight/Makefile | 2 +- |
16 |
1 file changed, 1 insertion(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/tools/golang/xenlight/Makefile b/tools/golang/xenlight/Makefile |
19 |
index e394ef9b2b..64671f246c 100644 |
20 |
--- a/tools/golang/xenlight/Makefile |
21 |
+++ b/tools/golang/xenlight/Makefile |
22 |
@@ -27,7 +27,7 @@ GOXL_GEN_FILES = types.gen.go helpers.gen.go |
23 |
# so that it can find the actual library. |
24 |
.PHONY: build |
25 |
build: xenlight.go $(GOXL_GEN_FILES) |
26 |
- CGO_CFLAGS="$(CFLAGS_libxenlight) $(CFLAGS_libxentoollog)" CGO_LDFLAGS="$(LDLIBS_libxenlight) $(LDLIBS_libxentoollog) -L$(XEN_libxenlight) -L$(XEN_libxentoollog)" $(GO) build -x |
27 |
+ CGO_CFLAGS="$(CFLAGS_libxenlight) $(CFLAGS_libxentoollog) $(APPEND_CFLAGS)" CGO_LDFLAGS="$(LDLIBS_libxenlight) $(LDLIBS_libxentoollog) -L$(XEN_libxenlight) -L$(XEN_libxentoollog) $(APPEND_LDFLAGS)" $(GO) build -x |
28 |
|
29 |
.PHONY: install |
30 |
install: build |
31 |
-- |
32 |
2.31.1 |
33 |
|