berkeleydb: build with C++ support if enabled
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 25 Apr 2012 13:59:07 +0000 (15:59 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 25 Apr 2012 13:59:07 +0000 (15:59 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/berkeleydb/berkeleydb.mk

index 396ba1691328f23c43374fea25f725304cd0678f..bb3fd5dfd92fddb65417630ac114046f592c6863 100644 (file)
@@ -22,7 +22,7 @@ define BERKELEYDB_CONFIGURE_CMDS
                --exec-prefix=/usr \
                --sysconfdir=/etc \
                --with-gnu-ld \
-               --disable-cxx \
+               $(if $(BR2_INSTALL_LIBSTDCPP),--enable-cxx,--disable-cxx) \
                --disable-java \
                --disable-tcl \
                --disable-compat185 \