MINGW-packages/mingw-w64-nim/0006-Fix-sqlite3-dll-name.patch
erw7 01373939af Change to use posixy path even on Windows (#4743)
- Change configuration files path to %NIM%/etc/nim.
- Change the system library path to %NIM%/lib/nim.
- Change DLL name from nimrtl.dll to libnimrtl.dll.
- Add DLL of MinGW to DLL name of pcre wrapper.
- Add DLL of MinGW to DLL name of sqlite3 wrapper.
- Change the installation destination of the configuration file to
  %NIM%/etc/nim.
- Change the installation destination of the nimrtl.dll to %NIM%/bin.
2018-12-04 14:25:59 +03:00

17 lines
528 B
Diff

diff --git a/lib/wrappers/sqlite3.nim b/lib/wrappers/sqlite3.nim
index 0276a0a65..91a0dd91b 100644
--- a/lib/wrappers/sqlite3.nim
+++ b/lib/wrappers/sqlite3.nim
@@ -12,9 +12,9 @@ when defined(windows):
when defined(nimOldDlls):
const Lib = "sqlite3.dll"
elif defined(cpu64):
- const Lib = "sqlite3_64.dll"
+ const Lib = "(sqlite3_64|libsqlite3-0).dll"
else:
- const Lib = "sqlite3_32.dll"
+ const Lib = "(sqlite3_32|libsqlite3-0).dll"
elif defined(macosx):
const
Lib = "libsqlite3(|.0).dylib"