mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
pcre: fix compilation when C++ support is disabled
pcre will use host g++ is no cross g++ is available, so explicitly disable c++ support in pcre if it isn't enabled in buildroot instead.
This commit is contained in:
@@ -9,9 +9,10 @@ PCRE_SITE = ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre
|
|||||||
PCRE_INSTALL_STAGING = YES
|
PCRE_INSTALL_STAGING = YES
|
||||||
PCRE_INSTALL_TARGET = YES
|
PCRE_INSTALL_TARGET = YES
|
||||||
|
|
||||||
PCRE_CONF_OPT = --target=$(GNU_TARGET_NAME) --host=$(GNU_TARGET_NAME) \
|
ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||||
--build=$(GNU_HOST_NAME) --prefix=/usr \
|
# pcre will use the host g++ if a cross version isn't available
|
||||||
--includedir=/usr/include
|
PCRE_CONF_OPT = --disable-cpp
|
||||||
|
endif
|
||||||
|
|
||||||
PCRE_DEPENDENCIES = uclibc
|
PCRE_DEPENDENCIES = uclibc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user