aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/pcre
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-03-27 13:27:15 -0700
committerHauke Mehrtens <hauke@hauke-m.de>2022-04-16 14:02:11 +0200
commitfc60b97a772e857d1d049b34f116d91c462db462 (patch)
tree5b252a03b5b97f3af0cbddcfc5d80ce399075486 /package/libs/pcre
parent56cd49bdc8ff762c52327ee7faa14cb99895e0fd (diff)
downloadupstream-fc60b97a772e857d1d049b34f116d91c462db462.tar.gz
upstream-fc60b97a772e857d1d049b34f116d91c462db462.tar.bz2
upstream-fc60b97a772e857d1d049b34f116d91c462db462.zip
pcre: pass -fPIC under host as well
static libraries need them as they are not PIC by default. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'package/libs/pcre')
-rw-r--r--package/libs/pcre/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/libs/pcre/Makefile b/package/libs/pcre/Makefile
index 43267562ea..894f39b7d1 100644
--- a/package/libs/pcre/Makefile
+++ b/package/libs/pcre/Makefile
@@ -67,9 +67,8 @@ HOST_CONFIGURE_ARGS += \
--enable-unicode-properties \
--enable-pcre16 \
--with-match-limit-recursion=16000 \
- --enable-cpp
-
-TARGET_CFLAGS += $(FPIC)
+ --enable-cpp \
+ --with-pic
CONFIGURE_ARGS += \
--enable-utf8 \
@@ -78,7 +77,8 @@ CONFIGURE_ARGS += \
--enable-pcre32 \
$(if $(CONFIG_PCRE_JIT_ENABLED),--enable-jit,--disable-jit) \
--with-match-limit-recursion=16000 \
- --$(if $(CONFIG_PACKAGE_libpcrecpp),en,dis)able-cpp
+ --$(if $(CONFIG_PACKAGE_libpcrecpp),en,dis)able-cpp \
+ --with-pic
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)"