aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pcre
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pcre')
-rw-r--r--src/lib/pcre/pcre.pas5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/pcre/pcre.pas b/src/lib/pcre/pcre.pas
index ab04a9d0..d328f4cf 100644
--- a/src/lib/pcre/pcre.pas
+++ b/src/lib/pcre/pcre.pas
@@ -503,9 +503,7 @@ implementation
uses
SysUtils,
- {$IFDEF DARWIN}
UConfig,
- {$ENDIF DARWIN}
{$IFDEF MSWINDOWS}
Windows;
{$ENDIF MSWINDOWS}
@@ -536,7 +534,8 @@ const
libpcremodulename = 'pcre3.dll';
{$ENDIF MSWINDOWS}
{$IFDEF LINUX}
- libpcremodulename = 'libpcre.so.0';
+ // "libpcre.so.<soname>", soname is different on platforms
+ libpcremodulename = LIBPCRE_LIBNAME;
{$ENDIF LINUX}
{$IFDEF DARWIN}
libpcremodulename = 'libpcre.dylib'; // this is a symlink for example to libpcre.0.0.1.dylib