mirror of
https://github.com/containers/podman.git
synced 2025-09-17 23:18:39 +08:00

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>
8 lines
144 B
Bash
Executable File
8 lines
144 B
Bash
Executable File
#!/usr/bin/env bash
|
|
${CPP:-${CC:-cc} -E} ${CPPFLAGS} - &> /dev/null << EOF
|
|
#include <sqlite3.h>
|
|
EOF
|
|
if test $? -eq 0 ; then
|
|
echo libsqlite3
|
|
fi
|