git: e99aeb77e1db - main - net/usockets: Fix build on some systems

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 21:04:27 UTC
The branch main has been updated by yuri:

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

commit e99aeb77e1dba8c70707f0a6e519f7cab461bd0a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-02-03 21:03:24 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-02-03 21:04:25 +0000

    net/usockets: Fix build on some systems
    
    ... by adding -fPIC.
    
    Reported by:    fallout
---
 net/usockets/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/usockets/Makefile b/net/usockets/Makefile
index 0fecfee0aa8d..3d7dca6cfb18 100644
--- a/net/usockets/Makefile
+++ b/net/usockets/Makefile
@@ -20,6 +20,7 @@ GH_ACCOUNT=	uNetworking
 GH_PROJECT=	uSockets
 
 MAKE_ARGS=	WITH_OPENSSL=1
+CFLAGS+=	-fPIC # -fPIC is required for the build to succeed, see https://github.com/uNetworking/uSockets/issues/217
 CXXFLAGS+=	-fPIC
 
 ALL_TARGET=	default