MINGW-packages/mingw-w64-nim/0005-Fix-pcre-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
554 B
Diff

diff --git a/lib/wrappers/pcre.nim b/lib/wrappers/pcre.nim
index e9e11960c..7c9dbca5e 100644
--- a/lib/wrappers/pcre.nim
+++ b/lib/wrappers/pcre.nim
@@ -313,9 +313,9 @@ when not defined(usePcreHeader):
when defined(nimOldDlls):
const pcreDll = "pcre.dll"
elif defined(cpu64):
- const pcreDll = "pcre64.dll"
+ const pcreDll = "(pcre64|libpcre-1).dll"
else:
- const pcreDll = "pcre32.dll"
+ const pcreDll = "(pcre32|libpcre-1).dll"
elif hostOS == "macosx":
const pcreDll = "libpcre(.3|.1|).dylib"
else: