From 9ef6c0dce1782197be72020f170184fb69748ffd Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 16 Aug 2012 16:21:10 -0700 Subject: [PATCH] scons: ensure you can build pgsql2sqlite even if the sqlite datasource plugin is not requested --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index dd0296da8..66f89e0cd 100644 --- a/SConstruct +++ b/SConstruct @@ -1243,6 +1243,10 @@ if not preconfigured: env.PrependUnique(LIBPATH = '#src', delete_existing=True) if env['PGSQL2SQLITE']: + if 'sqlite3' not in env['LIBS']: + env.AppendUnique(LIBS='sqlite3') + env.AppendUnique(CPPPATH = os.path.realpath(env['SQLITE_INCLUDES'])) + env.AppendUnique(LIBPATH = os.path.realpath(env['SQLITE_LIBS'])) if not conf.sqlite_has_rtree(): env['SKIPPED_DEPS'].append('pgsql2sqlite_rtree') env['PGSQL2SQLITE'] = False