summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-03-04 13:46:11 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-03-04 13:46:54 +0100
commite619727e999ecd8e6883330f2c6950cd0624de99 (patch)
treed32cf453323927064ebb095a9277fda14f773d56
parent184b2fe21bbc5fcd3c577ca6d079f6f5f70b7943 (diff)
SCons: Fix linking system pcre2 on server platform
Fixes #17245.
-rw-r--r--platform/server/detect.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/server/detect.py b/platform/server/detect.py
index c9a886ad6c..7bf445b43f 100644
--- a/platform/server/detect.py
+++ b/platform/server/detect.py
@@ -124,6 +124,11 @@ def configure(env):
if not env['builtin_libogg']:
env.ParseConfig('pkg-config ogg --cflags --libs')
+ # On Linux wchar_t should be 32-bits
+ # 16-bit library shouldn't be required due to compiler optimisations
+ if not env['builtin_pcre2']:
+ env.ParseConfig('pkg-config libpcre2-32 --cflags --libs')
+
## Flags
# Linkflags below this line should typically stay the last ones