浏览代码

SCons: Fix linking system pcre2 on server platform

Fixes #17245.
Rémi Verschelde 7 年之前
父节点
当前提交
e619727e99
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      platform/server/detect.py

+ 5 - 0
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