mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-16 12:23:59 +02:00
apcupsd: fix gcc 13 compliation error
On GCC13 build fails: toolchain-mipsel_24kc_gcc-13.2.0_musl/lib/libsupc++.a(eh_alloc.o): in function `std::__sv_check(unsigned int, unsigned int, char const*)': toolchain-mipsel_24kc_gcc-13.2.0_musl/gcc-13.2.0-final/mipsel-openwrt-linux-musl/libstdc++-v3/include/string_view:73: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' collect2: error: ld returned 1 exit status make[5]: *** [Makefile:33: apcupsd] Error 1 Workaround found at https://lore.kernel.org/buildroot/87wmsbk386.fsf@48ers.dk/T/ Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
This commit is contained in:
parent
2383185c31
commit
98a5367982
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=apcupsd
|
PKG_NAME:=apcupsd
|
||||||
PKG_VERSION:=3.14.14
|
PKG_VERSION:=3.14.14
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
|
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
@ -27,7 +27,7 @@ include $(INCLUDE_DIR)/package.mk
|
||||||
define Package/apcupsd
|
define Package/apcupsd
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+libpthread +libusb-compat
|
DEPENDS:=+libpthread +libusb-compat +libstdcpp
|
||||||
TITLE:=UPS control software
|
TITLE:=UPS control software
|
||||||
URL:=http://www.apcupsd.org/
|
URL:=http://www.apcupsd.org/
|
||||||
endef
|
endef
|
||||||
|
@ -35,7 +35,7 @@ endef
|
||||||
define Package/apcupsd-cgi
|
define Package/apcupsd-cgi
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+libpthread +libgd
|
DEPENDS:=+libpthread +libgd +libstdcpp
|
||||||
TITLE:=UPS control software CGI module
|
TITLE:=UPS control software CGI module
|
||||||
URL:=http://www.apcupsd.org/
|
URL:=http://www.apcupsd.org/
|
||||||
endef
|
endef
|
||||||
|
@ -57,7 +57,7 @@ endef
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
LD="$(TARGET_CC)" \
|
LD="$(TARGET_CXX)" \
|
||||||
all install
|
all install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user