Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Aug 2024 21:28:34 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bc45bb246c23 - main - devel/linenoise: Add SONAME
Message-ID:  <202408112128.47BLSYeo064774@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit bc45bb246c23162e4d2f8fc9df6dabb3907c71ff
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-08-11 21:27:52 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-08-11 21:27:52 +0000

    devel/linenoise: Add SONAME
---
 devel/linenoise/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/devel/linenoise/Makefile b/devel/linenoise/Makefile
index 4d6670848bfe..c6a15d42462c 100644
--- a/devel/linenoise/Makefile
+++ b/devel/linenoise/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	linenoise
 DISTVERSION=	1.0-34
+PORTREVISION=	1
 DISTVERSIONSUFFIX=	-g93b2db9
 CATEGORIES=	devel
 
@@ -20,7 +21,13 @@ PLIST_FILES=	include/linenoise.h \
 
 do-build:
 	@cd ${WRKSRC} && \
-		${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} -shared -fPIC linenoise.c -o liblinenoise.so
+		${SETENV} ${MAKE_ENV} ${CC} \
+			${CFLAGS} ${LDFLAGS} \
+			-shared \
+			-fPIC \
+			-Wl,-soname=liblinenoise.so \
+			linenoise.c \
+			-o liblinenoise.so
 
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/linenoise.h ${STAGEDIR}${PREFIX}/include



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408112128.47BLSYeo064774>