package/apcupsd: add -lstdc++ for ARC7* and SPARC
PATCH 1/1 package/apcupsd: add -lstdc++ for ARC7* and SPARC
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//
--- package/apcupsd/apcupsd.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/apcupsd/apcupsd.mk +6 -0
@@ -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
Signature · 1 line
2.16.2
PATCH 1/1 package/apcupsd: add -lstdc++ for ARC7* and SPARC
Quoted 8 lines · On Wed, 12 Aug 2020 17:07:20 +0300 Evgeniy Didin <[email protected]>…
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 <[email protected]>
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
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com