mirror of
https://github.com/containers/podman.git
synced 2025-09-19 23:03:16 +08:00
Makefile: use libsqlite3 build when possible
Dynamically link sqlite3 when installed, the main motivation is that we reduce the podman binary size with that. I see about 2.5 MB savings. But also dynamically linking it means if there a vulnerabilities only the sqlite3 distro package needs updating and we don't have to make a new podman release with the vendored update. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
1
Makefile
1
Makefile
@ -61,6 +61,7 @@ REMOTETAGS ?= remote exclude_graphdriver_btrfs containers_image_openpgp
|
|||||||
BUILDTAGS ?= \
|
BUILDTAGS ?= \
|
||||||
$(shell hack/apparmor_tag.sh) \
|
$(shell hack/apparmor_tag.sh) \
|
||||||
$(shell hack/btrfs_installed_tag.sh) \
|
$(shell hack/btrfs_installed_tag.sh) \
|
||||||
|
$(shell hack/sqlite_tag.sh) \
|
||||||
$(shell hack/systemd_tag.sh) \
|
$(shell hack/systemd_tag.sh) \
|
||||||
$(shell hack/libsubid_tag.sh) \
|
$(shell hack/libsubid_tag.sh) \
|
||||||
$(if $(filter linux,$(GOOS)), seccomp,)
|
$(if $(filter linux,$(GOOS)), seccomp,)
|
||||||
|
7
hack/sqlite_tag.sh
Executable file
7
hack/sqlite_tag.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
${CPP:-${CC:-cc} -E} ${CPPFLAGS} - &> /dev/null << EOF
|
||||||
|
#include <sqlite3.h>
|
||||||
|
EOF
|
||||||
|
if test $? -eq 0 ; then
|
||||||
|
echo libsqlite3
|
||||||
|
fi
|
Reference in New Issue
Block a user