Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/lib_pypy/_sqlite3_build.py b/lib_pypy/_sqlite3_build.py 2index 2a4e573..92ab786 100644 3--- a/lib_pypy/_sqlite3_build.py 4+++ b/lib_pypy/_sqlite3_build.py 5@@ -352,7 +352,7 @@ def _has_load_extension(): 6 typedef ... sqlite3; 7 int sqlite3_enable_load_extension(sqlite3 *db, int onoff); 8 """) 9- libname = 'sqlite3' 10+ libname = '@libsqlite@' 11 if sys.platform == 'win32': 12 import os 13 _libname = os.path.join(os.path.dirname(sys.executable), libname) 14@@ -369,7 +369,7 @@ def _has_backup(): 15 typedef ... sqlite3_backup; 16 sqlite3_backup* sqlite3_backup_init(sqlite3 *, const char* , sqlite3 *, const char*); 17 """) 18- libname = 'sqlite3' 19+ libname = '@libsqlite@' 20 if sys.platform == 'win32': 21 import os 22 _libname = os.path.join(os.path.dirname(sys.executable), libname) 23@@ -383,7 +383,7 @@ def _get_version(): 24 unverified_ffi.cdef(""" 25 int sqlite3_libversion_number(void); 26 """) 27- libname = 'sqlite3' 28+ libname = '@libsqlite@' 29 if sys.platform == 'win32': 30 import os 31 _libname = os.path.join(os.path.dirname(sys.executable), libname) 32@@ -554,6 +554,8 @@ if sys.platform.startswith('freebsd'): 33 else: 34 extra_args = dict( 35 libraries=libraries, 36+ include_dirs=['@dev@/include'], 37+ library_dirs=['@out@/lib'] 38 ) 39 40 SOURCE = """