View | Details | Raw Unified | Return to bug 256978
Collapse All | Expand All

(-)b/sysutils/xen-tools/Makefile (-1 / +4 lines)
Lines 1-7 Link Here
1
PORTNAME=	xen
1
PORTNAME=	xen
2
PKGNAMESUFFIX=	-tools
2
PKGNAMESUFFIX=	-tools
3
PORTVERSION=	4.15.0
3
PORTVERSION=	4.15.0
4
PORTREVISION=	1
4
PORTREVISION=	2
5
CATEGORIES=	sysutils emulators
5
CATEGORIES=	sysutils emulators
6
MASTER_SITES=	http://downloads.xenproject.org/release/xen/${PORTVERSION}/
6
MASTER_SITES=	http://downloads.xenproject.org/release/xen/${PORTVERSION}/
7
7
Lines 58-63 DOCS_ALL_TARGET= docs Link Here
58
INSTALL_TARGET=		install-tools
58
INSTALL_TARGET=		install-tools
59
DOCS_INSTALL_TARGET=	install-docs
59
DOCS_INSTALL_TARGET=	install-docs
60
60
61
# Fix build with go installed.
62
EXTRA_PATCHES+=	${PATCHDIR}/0001-tools-go-honor-append-build-flags.patch:-p1
63
61
.include <bsd.port.options.mk>
64
.include <bsd.port.options.mk>
62
65
63
.if ${OPSYS} != FreeBSD
66
.if ${OPSYS} != FreeBSD
(-)b/sysutils/xen-tools/files/0001-tools-go-honor-append-build-flags.patch (-1 / +33 lines)
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

Return to bug 256978