PR #22703 opened by James Le Cuirot (chewi)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22703
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22703.patch

rpaths are unnecessary for static libraries and are likely to be
considered a security issue by distribution QA checks.

Signed-off-by: James Le Cuirot <[email protected]>



>From 95c45fca584f2e7d3f08bbcdba2ff544f99509eb Mon Sep 17 00:00:00 2001
From: James Le Cuirot <[email protected]>
Date: Sat, 4 Apr 2026 08:32:40 +0100
Subject: [PATCH] ffbuild: Don't include rpath in static-only *-uninstalled.pc
 files

rpaths are unnecessary for static libraries and are likely to be
considered a security issue by distribution QA checks.

Signed-off-by: James Le Cuirot <[email protected]>
---
 ffbuild/pkgconfig_generate.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffbuild/pkgconfig_generate.sh b/ffbuild/pkgconfig_generate.sh
index fc6af774a6..4bfb09a493 100755
--- a/ffbuild/pkgconfig_generate.sh
+++ b/ffbuild/pkgconfig_generate.sh
@@ -57,6 +57,6 @@ Description: $comment
 Version: $version
 Requires: $requires
 Conflicts:
-Libs: -L\${libdir} -Wl,-rpath,\${libdir} -l${fullname#lib} $($shared || echo 
$libs)
+Libs: -L\${libdir} $($shared && echo -Wl,-rpath,\${libdir}) -l${fullname#lib} 
$($shared || echo $libs)
 Cflags: -I\${includedir}
 EOF
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to