pcre2: only build static library for host
authorTianling Shen <cnsztl@immortalwrt.org>
Wed, 26 Apr 2023 00:00:10 +0000 (08:00 +0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 26 Apr 2023 07:51:57 +0000 (10:51 +0300)
Fix potential linking issue:
```
/mnt/snapshot/staging_dir/hostpkg/bin/swig: error while loading shared
  libraries: libpcre2-8.so.0: cannot open shared object file:
    No such file or directory

error: command '/mnt/snapshot/staging_dir/hostpkg/bin/swig' failed with
  exit code 127
```

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
libs/pcre2/Makefile

index 8abdd5d7179afe1e00700b07ced21bc5654dd57f..ca761cc36d8ed8300eaf27b21a4af20547cc6212 100644 (file)
@@ -57,7 +57,7 @@ define Package/libpcre2-32
 endef
 
 CMAKE_HOST_OPTIONS += \
-       -DBUILD_SHARED_LIBS=ON \
+       -DBUILD_SHARED_LIBS=OFF \
        -DPCRE2_BUILD_PCRE2_8=ON \
        -DPCRE2_BUILD_PCRE2_16=ON \
        -DPCRE2_BUILD_PCRE2_32=ON \