1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

Use env var to build with system SQLite

I'm proposing this change for discussion. While our build system does have a patching mechanism, it's easier to specify environment variables than to carry patches between versions. The behavior here is essentially the same in both cases, but this approach gives other folks another mechanism to link against a non-bundled SQLite.
This commit is contained in:
chromatic 2022-05-16 16:21:11 -07:00 committed by GitHub
parent 353f185cc5
commit 60cb276d55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ SCOPE: {
# a system sqlite is also sophisticated enough to have a patching system
# that can change the if ( 0 ) to if ( 1 )
my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
if ( 0 ) {
if ( $ENV{USE_SYSTEM_SQLITE} ) {
require File::Spec;
if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
$sqlite_base =~ /=(.*)/;