git: db689ba5bf6a - main - emulators/virtualbox-ose-71: Fix build on 15-CURRENT after 1500013

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Thu, 05 Jun 2025 01:11:47 UTC
The branch main has been updated by vvd:

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

commit db689ba5bf6ada3df3338079b26f256118ec610b
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-06-05 00:54:48 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-06-05 01:11:30 +0000

    emulators/virtualbox-ose-71: Fix build on 15-CURRENT after 1500013
    
    kBuild: Linking VBoxSVC
    (...cut...) undefined reference to `cam_close_device'
    (...cut...) undefined reference to `cam_freeccb'
    (...cut...) undefined reference to `cam_getccb'
    (...cut...) undefined reference to `cam_open_btl'
    (...cut...) undefined reference to `cam_send_ccb'
    (...cut...) undefined reference to `cam_strvis'
    (...cut...) undefined reference to `geom_deletetree'
    (...cut...) undefined reference to `geom_gettree'
    
    PR:     286799
    MFH:    2025Q2
---
 emulators/virtualbox-ose-71/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/emulators/virtualbox-ose-71/Makefile b/emulators/virtualbox-ose-71/Makefile
index b754e9555191..497a50bfd039 100644
--- a/emulators/virtualbox-ose-71/Makefile
+++ b/emulators/virtualbox-ose-71/Makefile
@@ -288,6 +288,9 @@ post-patch:
 	@${SED} -e 's|GXX3|VBoxGccFreeBSD|g' \
 	    ${LOCALBASE}/share/kBuild/tools/GXX3.kmk > \
 	    ${WRKSRC}/tools/kBuildTools/VBoxGccFreeBSD.kmk
+.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500013
+	@${ECHO_CMD} 'VBoxSVC_LDFLAGS.freebsd = -lsys' >> ${WRKSRC}/LocalConfig.kmk
 .endif
 	# Causes a "reinplace" QA warning with default LOCALBASE
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \