aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-02-03 21:03:24 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-02-03 21:04:25 +0000
commite99aeb77e1dba8c70707f0a6e519f7cab461bd0a (patch)
tree6d8d9dbb928c9089c630ad7caeb17c219e1dbdf9
parent1e452f6a9cbb7f13333f3db1e2599e61c7deb7b0 (diff)
downloadports-e99aeb77e1dba8c70707f0a6e519f7cab461bd0a.tar.gz
ports-e99aeb77e1dba8c70707f0a6e519f7cab461bd0a.zip
net/usockets: Fix build on some systems
... by adding -fPIC. Reported by: fallout
-rw-r--r--net/usockets/Makefile1
1 files changed, 1 insertions, 0 deletions
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