diff --git a/Makefile b/Makefile index 5fc403d829..6b364808aa 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ REMOTETAGS ?= remote exclude_graphdriver_btrfs containers_image_openpgp BUILDTAGS ?= \ $(shell hack/apparmor_tag.sh) \ $(shell hack/btrfs_installed_tag.sh) \ + $(shell hack/sqlite_tag.sh) \ $(shell hack/systemd_tag.sh) \ $(shell hack/libsubid_tag.sh) \ $(if $(filter linux,$(GOOS)), seccomp,) diff --git a/hack/sqlite_tag.sh b/hack/sqlite_tag.sh new file mode 100755 index 0000000000..0248355cf3 --- /dev/null +++ b/hack/sqlite_tag.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +${CPP:-${CC:-cc} -E} ${CPPFLAGS} - &> /dev/null << EOF +#include +EOF +if test $? -eq 0 ; then + echo libsqlite3 +fi