X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/51def42732d7a60636c5cc32237609c7543b722b..125276dafe1890768d21b8f4c04cffdd7ed05787:/rules.mk diff --git a/rules.mk b/rules.mk index c3adb1d6c..15d62bc26 100644 --- a/rules.mk +++ b/rules.mk @@ -103,7 +103,7 @@ HOST_CFLAGS:=-O2 -I$(STAGING_DIR_HOST)/include HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib TARGET_CC:=$(TARGET_CROSS)gcc -TARGET_CXX:=$(TARGET_CROSS)g++ +TARGET_CXX:=$(if $(CONFIG_INSTALL_LIBSTDCPP),$(TARGET_CROSS)g++,no) STRIP:=$(STAGING_DIR_HOST)/bin/sstrip PATCH:=$(SCRIPT_DIR)/patch-kernel.sh SED:=$(STAGING_DIR_HOST)/bin/sed -i -e