git: 454e3c91ae91 - main - archivers/zstd: Fix static library

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 09 Apr 2023 23:38:59 UTC
The branch main has been updated by sunpoet:

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

commit 454e3c91ae9105a9af1939c9632424083ed3bbdb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-09 23:37:19 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-09 23:37:19 +0000

    archivers/zstd: Fix static library
    
    - Bump PORTREVISION for package change
    
    It fixes the build of dependent ports, e.g. devel/qt6-base.
---
 archivers/zstd/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile
index ee47645d3e85..b1d024ad7655 100644
--- a/archivers/zstd/Makefile
+++ b/archivers/zstd/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	zstd
 PORTVERSION=	1.5.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	archivers
 MASTER_SITES=	https://github.com/facebook/zstd/releases/download/v${PORTVERSION}/
 
@@ -20,6 +20,7 @@ USES=		gmake localbase:ldflags tar:zst
 
 ALL_TARGET=	default
 BINARY_ALIAS=	gmd5sum=md5sum
+CFLAGS+=	-fPIC
 MAKE_ENV=	INSTALL_DATA="${INSTALL_DATA}" \
 		INSTALL_MAN="${INSTALL_MAN}" \
 		INSTALL_PROGRAM="${INSTALL_PROGRAM}" \