pcre: Fix compile of libpcrecpp

If the cpp lib is added after pcre is first compiled, pcre will
not be reconfigured and the build will fail.
Fix this by always building the cpp parts.

Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
This commit is contained in:
Jan Kardell 2019-03-10 17:30:39 +01:00
parent 7450b5fec5
commit 17090fecf1

View file

@ -55,12 +55,8 @@ CONFIGURE_ARGS += \
--enable-unicode-properties \ --enable-unicode-properties \
--enable-pcre16 \ --enable-pcre16 \
--with-match-limit-recursion=16000 \ --with-match-limit-recursion=16000 \
--enable-cpp
ifneq ($(CONFIG_PACKAGE_libpcrecpp),)
CONFIGURE_ARGS+= --enable-cpp
else
CONFIGURE_ARGS+= --disable-cpp
endif
MAKE_FLAGS += \ MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" CFLAGS="$(TARGET_CFLAGS)"