git: 91f5b9ec1d13 - main - devel/linux_libusb: Fix build and hand over to emulation@

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sun, 27 Sep 2026 11:26:33 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=91f5b9ec1d13c92e220eade3060bb8aba9b47550

commit 91f5b9ec1d13c92e220eade3060bb8aba9b47550
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-27 11:24:59 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-27 11:26:23 +0000

    devel/linux_libusb: Fix build and hand over to emulation@
    
    The Linux gcc picks up ld from devel/binutils, which cannot load the
    Linux LTO plugin, and linking libusb.so.3 fails.  Point gcc at the
    linker from the Linux base with -B.
    
    Give maintainership to emulation@.
    
    Sponsored by:   Netzkommune GmbH
---
 devel/linux_libusb/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/devel/linux_libusb/Makefile b/devel/linux_libusb/Makefile
index 2505f8b76446..959a9589257a 100644
--- a/devel/linux_libusb/Makefile
+++ b/devel/linux_libusb/Makefile
@@ -1,9 +1,10 @@
 PORTNAME=	linux_libusb
 PORTVERSION=	13.1.0
+PORTREVISION=	1
 CATEGORIES=	devel linux
 PKGNAMESUFFIX=	-${FLAVOR}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	emulation@FreeBSD.org
 COMMENT=	Linux-compatibility LibUSB
 WWW=		https://github.com/hselasky/linux_libusb
 
@@ -32,7 +33,7 @@ PLIST_FILES=	usr/${LIBDIR_${ARCH}}/libusb.so.3 \
 		usr/${LIBDIR_${ARCH}}/libusb-0.1.so.4 \
 		usr/${LIBDIR_${ARCH}}/libusb-1.0.so.0
 
-CC=		${LINUXBASE}/usr/bin/gcc --sysroot=${LINUXBASE}
+CC=		${LINUXBASE}/usr/bin/gcc --sysroot=${LINUXBASE} -B${LINUXBASE}/usr/bin/
 CFLAGS:=	${CFLAGS:N-march=*}
 CFLAGS+=	-I${WRKDIR}/${DISTNAME}/include
 SSP_CFLAGS?=	-fstack-protector # XXX -strong isn't supported by GCC < 4.9