pcre2: only build static library for host

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>
This commit is contained in:
Tianling Shen 2023-04-26 08:00:10 +08:00 committed by Rosen Penev
parent 42d340bce0
commit 34842c2233
1 changed files with 1 additions and 1 deletions

View 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 \