mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
Scons - use explicit LIBS to build sqlite3-rtree test (otherwise test fails to link on Linux)
This commit is contained in:
parent
ac5266d17e
commit
2c52147f14
@ -1167,6 +1167,8 @@ def sqlite_has_rtree(context, silent=False):
|
||||
http://www.sqlite.org/c3ref/compileoption_get.html
|
||||
"""
|
||||
|
||||
orig_libraries = context.env['LIBS']
|
||||
context.env['LIBS'] = ['sqlite3', 'm','dl','pthread']
|
||||
if not silent:
|
||||
context.Message('Checking if SQLite supports RTREE... ')
|
||||
ret, out = context.TryRun("""
|
||||
@ -1201,6 +1203,7 @@ int main()
|
||||
}
|
||||
|
||||
""", '.c')
|
||||
context.env['LIBS'] = orig_libraries
|
||||
if silent:
|
||||
context.did_show_result=1
|
||||
context.Result(ret)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user