[lxc-devel] [lxd/master] Allow build with GNU Make 4.3

sjemens on Github lxc-bot at linuxcontainers.org
Mon Feb 17 12:13:38 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 372 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200217/7dfb2c21/attachment.bin>
-------------- next part --------------
From 969f706234d3709b67f18f7692aacbc4f23eb546 Mon Sep 17 00:00:00 2001
From: Asterios Dimitriou <asterios at pci.gr>
Date: Mon, 17 Feb 2020 14:08:53 +0200
Subject: [PATCH] Allow build with GNU Make 4.3

Signed-off-by: Asterios Dimitriou <asterios at pci.gr>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3ff398dbbc..0e0948f59d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,8 @@ LINGUAS=$(basename $(POFILES))
 POTFILE=po/$(DOMAIN).pot
 VERSION=$(shell grep "var Version" shared/version/flex.go | cut -d'"' -f2)
 ARCHIVE=lxd-$(VERSION).tar
-TAG_SQLITE3=$(shell printf "\#include <sqlite3.h>\nvoid main(){int n = SQLITE_IOERR_NOT_LEADER;}" | $(CC) ${CGO_CFLAGS} -o /dev/null -xc - >/dev/null 2>&1 && echo "libsqlite3")
+HASH := \#
+TAG_SQLITE3=$(shell printf "$(HASH)include <sqlite3.h>\nvoid main(){int n = SQLITE_IOERR_NOT_LEADER;}" | $(CC) ${CGO_CFLAGS} -o /dev/null -xc - >/dev/null 2>&1 && echo "libsqlite3")
 GOPATH ?= $(HOME)/go
 
 .PHONY: default


More information about the lxc-devel mailing list