pcre2: fix host compilation of libselinux by enabling PIC
[openwrt/staging/jow.git] / package / libs / pcre2 / Makefile
index d178e3cd04f30e7ca7a0e340d2657df9ad3bb6dd..fa4282cee8ca80b25f96a0a1d86f5f1b26bd31d1 100644 (file)
@@ -66,7 +66,8 @@ CMAKE_HOST_OPTIONS += \
        -DPCRE2_SUPPORT_JIT=OFF \
        -DPCRE2_SHOW_REPORT=OFF \
        -DPCRE2_BUILD_PCRE2GREP=OFF \
-       -DPCRE2_BUILD_TESTS=OFF
+       -DPCRE2_BUILD_TESTS=OFF \
+       -DPCRE2_STATIC_PIC=ON
 
 CMAKE_OPTIONS += \
        -DBUILD_SHARED_LIBS=ON \