[package] ncurses: build C++ bindings only our toolchain supports C++
[openwrt.git] / package / libs / ncurses / Makefile
index 0b88ab6..465b60c 100644 (file)
@@ -67,6 +67,11 @@ CONFIGURE_ARGS += \
        --with-terminfo-dirs=/usr/share/terminfo \
        --with-default-terminfo-dir=/usr/share/terminfo
 
+ifneq ($(INSTALL_LIBSTDCPP),y)
+CONFIGURE_ARGS += \
+       --without-cxx-binding
+endif
+
 ifeq ($(HOST_OS),FreeBSD)
        CONFIGURE_ARGS +=
                --with-terminfo=/usr/share/terminfo.db