Created
September 1, 2016 08:20
-
-
Save plntyk/6ac7a03dc82538fdcddf31a88151c276 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 66821a84a29cf850534477e57624f202f3034aeb | |
Author: Dirk Neukirchen <dirkneukirchen@web.de> | |
Date: Thu Aug 13 19:08:54 2015 +0200 | |
smartmontools: fix libstdcpp build | |
compiling with libstdcpp / libstdc++ breaks with | |
smartctl.cpp:31:21: fatal error: stdexcept: No such file or directory | |
or complains about -luclibc++ not found | |
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> | |
diff --git a/utils/smartmontools/Makefile b/utils/smartmontools/Makefile | |
index 88d6840..7d09018 100644 | |
--- a/utils/smartmontools/Makefile | |
+++ b/utils/smartmontools/Makefile | |
@@ -58,10 +58,10 @@ endef | |
# uses GNU configure | |
CONFIGURE_VARS += \ | |
- CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \ | |
- CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \ | |
+ CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti $(if $(CONFIG_USE_UCLIBCXX),-nostdinc++,)" \ | |
+ CPPFLAGS="$$$$CPPFLAGS $(if $(CONFIG_USE_UCLIBCXX),-I$(STAGING_DIR)/usr/include/uClibc++,) -I$(LINUX_DIR)/include" \ | |
LDFLAGS="$$$$LDFLAGS" \ | |
- LIBS="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S) -lc" \ | |
+ LIBS="-nodefaultlibs -lc $(if $(CONFIG_USE_UCLIBCXX),-luClibc++,-lstdc++) -lm $(LIBGCC_S) -lc" \ | |
define Build/Compile | |
$(MAKE) -C $(PKG_BUILD_DIR) \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment