git: 923567274a03 - main - security/suricata: Respect CC

From: Craig Leres <leres_at_FreeBSD.org>
Date: Fri, 08 Oct 2021 16:30:18 UTC
The branch main has been updated by leres:

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

commit 923567274a0367bc5a67c568c882017eef629b2c
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2021-10-08 16:29:37 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2021-10-08 16:29:37 +0000

    security/suricata: Respect CC
    
    PR:             258294
    Reported by:    Evgeniy Khramtsov
    Approved by:    Franco Fichtner (maintainer)
---
 security/suricata/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/security/suricata/Makefile b/security/suricata/Makefile
index 18ee36286733..09b34da27b17 100644
--- a/security/suricata/Makefile
+++ b/security/suricata/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	suricata
 DISTVERSION=	6.0.3
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security
 MASTER_SITES=	https://www.openinfosecfoundation.org/download/
 
@@ -29,6 +29,7 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=--enable-gccprotect \
 		--enable-bundled-htp \
 	        --disable-gccmarch-native
+MAKE_ENV=	RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:C/.+/-C link-arg=&/}"
 
 INSTALL_TARGET=		install-strip
 TEST_TARGET=		check