Browse Source

package: apcupsd: Fix for compiling with gcc-13

Kudos to Fabrice Fontaine for coming up with this:

https://lore.kernel.org/buildroot/20240113100654.85904-1-fontaine.fabrice@gmail.com/

Signed-off-by: Phil Sutter <phil@nwl.cc>
Phil Sutter 3 months ago
parent
commit
31e6c96a7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/apcupsd/Makefile

+ 1 - 1
package/apcupsd/Makefile

@@ -24,7 +24,7 @@ $(eval $(call PKG_template,APCUPSD,apcupsd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_D
 
 CONFIGURE_ARGS+=	--prefix="${WRKINST}" --sbindir="/usr/sbin" --enable-usb
 CONFIGURE_ENV+=		ac_cv_path_WALL=/usr/bin/wall
-XAKE_FLAGS:=		VERBOSE=1 STRIP=""
+XAKE_FLAGS:=		VERBOSE=1 STRIP="" LD="$(TARGET_CXX)"
 
 # XXX: custom init script?
 apcupsd-install: