Smartmontools compiles with ulibcxx, so use it instead of libstdcpp
authorFlorian Fainelli <florian@openwrt.org>
Mon, 3 Nov 2008 10:00:55 +0000 (10:00 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 3 Nov 2008 10:00:55 +0000 (10:00 +0000)
SVN-Revision: 13102

utils/smartmontools/Makefile

index 574894cd8f8f04f264ec99b69f3b26a2685efc50..0e9955503e2d3839ae00c3167f64f5d3e58af9db 100644 (file)
@@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/smartmontools
   SECTION:=utils
   CATEGORY:=Utilities
-  DEPENDS:=+libstdcpp
+  DEPENDS:=+uclibcxx
   TITLE:=S.M.A.R.T Monitoring Tool
   URL:=http://smartmontools.sourceforge.net/
 endef
@@ -38,7 +38,11 @@ endef
 define Build/Configure 
        (cd $(PKG_BUILD_DIR); ./autogen.sh );
        $(call Build/Configure/Default,, \
-       ac_libc_have_working_snprintf=yes \
+               ac_libc_have_working_snprintf=yes \
+               CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \
+               CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
+               LDFLAGS="$$$$LDFLAGS" \
+               LIBS="-nodefaultlibs -luClibc++ -lm -lgcc" \
        )
 endef