mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 06:08:38 -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:
parent
353f185cc5
commit
60cb276d55
1 changed files with 1 additions and 1 deletions
|
@ -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 =~ /=(.*)/;
|
||||
|
|
Loading…
Add table
Reference in a new issue