Skip to content

Commit

Permalink
Search the custom sqlite directory for libraries at link time as well
Browse files Browse the repository at this point in the history
as at run time.
  • Loading branch information
markito3 committed Apr 5, 2018
1 parent 14f5037 commit 1f03674
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SBMS/sbms.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ def AddSQLite(env):
if(sqlite_home != None) :
SQLITE_CPPPATH = ["%s/include" % (sqlite_home)]
env.AppendUnique(CPPPATH = SQLITE_CPPPATH)
SQLITE_LIBPATH = ["%s/lib" % (sqlite_home)]
env.AppendUnique(LIBPATH = SQLITE_LIBPATH)
AddSQLite.SQLITE_LINKFLAGS = "-Wl,-rpath=%s/lib" % (sqlite_home)
AddLinkFlags(env, AddSQLite.SQLITE_LINKFLAGS)
env.AppendUnique(LIBS = 'sqlite3')
Expand Down

0 comments on commit 1f03674

Please sign in to comment.