Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Sep 2025 13:11:00 GMT
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dafd960a3d65 - main - libsamplerate: Define as PRIVATELIB
Message-ID:  <202509151311.58FDB0eo072204@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=dafd960a3d65cdaccb1f8b9395fad14092ec9eb2

commit dafd960a3d65cdaccb1f8b9395fad14092ec9eb2
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2025-09-15 13:09:38 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2025-09-15 13:09:38 +0000

    libsamplerate: Define as PRIVATELIB
    
    Fixes the following warnings:
    
    ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
    
    >>> defined in /usr/obj/usr/src/amd64.amd64/lib/libsamplerate/libsamplerate.a(samplerate.o)
    >>> referenced by samplerate.c:498 (/usr/src/contrib/libsamplerate/samplerate.c:498)
    >>>
    >>>   samplerate.o:(src_new) in archive /usr/obj/usr/src/amd64.amd64/lib/libsamplerate/libsamplerate.a
    
    Related discussion: https://reviews.freebsd.org/D52306
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    fuz
    Differential Revision:  https://reviews.freebsd.org/D52307
---
 etc/mtree/BSD.usr.dist     | 2 ++
 lib/libsamplerate/Makefile | 2 +-
 share/mk/src.libnames.mk   | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
index 7d3a72f43fa1..19da845e962f 100644
--- a/etc/mtree/BSD.usr.dist
+++ b/etc/mtree/BSD.usr.dist
@@ -26,6 +26,8 @@
                     ..
                 ..
             ..
+            samplerate
+            ..
             sqlite3
             ..
             ucl
diff --git a/lib/libsamplerate/Makefile b/lib/libsamplerate/Makefile
index 256f2087284f..6ca87d8b20ca 100644
--- a/lib/libsamplerate/Makefile
+++ b/lib/libsamplerate/Makefile
@@ -1,7 +1,7 @@
 .PATH:		${SRCTOP}/contrib/libsamplerate
 
 LIB=		samplerate
-INTERNALLIB=
+PRIVATELIB=
 
 SRCS=		samplerate.c \
 		src_linear.c \
diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
index 9ca043e7733c..d6597caf7e2a 100644
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -29,6 +29,7 @@ _PRIVATELIBS=	\
 		heimipcs \
 		kldelf \
 		ldns \
+		samplerate \
 		sqlite3 \
 		ssh \
 		ucl \
@@ -72,7 +73,6 @@ _INTERNALLIBS=	\
 		pfctl \
 		pkgecc \
 		pmcstat \
-		samplerate \
 		sl \
 		sm \
 		smdb \



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