git: 7c8ae4a390b5 - main - sysutils/evhz: respect LDFLAGS

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 12 Oct 2022 17:17:57 UTC
The branch main has been updated by jbeich:

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

commit 7c8ae4a390b5d8e8dbcf1966bc3461872e5d1b5f
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-10-12 16:57:46 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-10-12 17:16:04 +0000

    sysutils/evhz: respect LDFLAGS
    
    For those not passed via CFLAGS as well e.g., -static.
---
 sysutils/evhz/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysutils/evhz/Makefile b/sysutils/evhz/Makefile
index 9877ea786897..801ea9d2d25e 100644
--- a/sysutils/evhz/Makefile
+++ b/sysutils/evhz/Makefile
@@ -17,7 +17,7 @@ USES=		localbase
 PLIST_FILES=	bin/${PORTNAME}
 
 do-build:
-	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c)
+	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} ${PORTNAME}.c)
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/