All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/apcupsd: add -lstdc++ for ARC7* and SPARC
@ 2020-08-12 14:07 Evgeniy Didin
  2020-08-12 14:12 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Evgeniy Didin @ 2020-08-12 14:07 UTC (permalink / raw)
  To: buildroot

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@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/apcupsd: add -lstdc++ for ARC7* and SPARC
  2020-08-12 14:07 [Buildroot] [PATCH] package/apcupsd: add -lstdc++ for ARC7* and SPARC Evgeniy Didin
@ 2020-08-12 14:12 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2020-08-12 14:12 UTC (permalink / raw)
  To: buildroot

On Wed, 12 Aug 2020 17:07:20 +0300
Evgeniy Didin <Evgeniy.Didin@synopsys.com> wrote:

> 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@synopsys.com>

A similar patch was already submitted a while ago, and the same
question was already asked back then: "why ?".

The "some reason" is not really a satisfying justification.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-12 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 14:07 [Buildroot] [PATCH] package/apcupsd: add -lstdc++ for ARC7* and SPARC Evgeniy Didin
2020-08-12 14:12 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.