[lxc-devel] [lxc-ci/master] build-lxd: allow -Wl,-z,now

brauner on Github lxc-bot at linuxcontainers.org
Wed Apr 17 21:20:08 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 365 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190417/ff317670/attachment.bin>
-------------- next part --------------
From 2c8065d26e24d89166d6c77fd1f2021eef7e737c Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 17 Apr 2019 23:19:19 +0200
Subject: [PATCH] build-lxd: allow -Wl,-z,now

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 bin/build-lxd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/build-lxd b/bin/build-lxd
index 641c594..f77cc1a 100755
--- a/bin/build-lxd
+++ b/bin/build-lxd
@@ -103,7 +103,7 @@ echo "==> ENVIRONMENT DONE"
 # Build LXD
 echo "==> BUILD BEGIN: lxd"
 go get -t -d ./...
-go install -tags libsqlite3 ./...
+CGO_LDFLAGS_ALLOW="-Wl,-z,now" CC=$(CC) go install -tags libsqlite3 ./...
 echo "==> BUILD DONE: lxd"
 
 # Test namespace


More information about the lxc-devel mailing list