[Buildroot] [PATCH] package/apcupsd: add -lstdc++ for ARC7* and SPARC

Evgeniy Didin Evgeniy.Didin at synopsys.com
Wed Aug 12 14:07:20 UTC 2020


For some reason apcupsd is not building for ARC700 and SPARC,
adding "-lstdc++" solves the issue.

Fixes:
http://autobuild.buildroot.org/results/3be/3bedf404de0ea42ee3ba624cded65d310a847af9//
http://autobuild.buildroot.org/results/6ab/6ab4e8021aad13bc153a6c22e87a77bf2bdc21e0//

Signed-off-by: Evgeniy Didin <Evgeniy.Didin at synopsys.com>
---
 package/apcupsd/apcupsd.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/apcupsd/apcupsd.mk b/package/apcupsd/apcupsd.mk
index 410bce9aec..67a37d6af8 100644
--- a/package/apcupsd/apcupsd.mk
+++ b/package/apcupsd/apcupsd.mk
@@ -18,6 +18,12 @@ APCUPSD_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libusb`"
 endif
 endif
 
+ifeq ($(BR2_arc770d)$(BR2_arc750d)$(BR2_sparc),y)
+#TARGET_LDFLAGS += -lstdc++
+APCUPSD_CONF_ENV += LIBS+="-lstdc++"
+endif
+#APCUPSD_CONF_ENV += LIBS+="-lstdc++"
+
 ifeq ($(BR2_PACKAGE_APCUPSD_APCSMART),y)
 APCUPSD_CONF_OPTS += --enable-apcsmart
 else
-- 
2.16.2



More information about the buildroot mailing list