[x264-devel] Fix pkg-config for dynamic vs static linking

Brad Smith git at videolan.org
Thu Nov 8 00:55:02 CET 2012


x264 | branch: master | Brad Smith <brad at comstyle.com> | Wed Sep 26 14:13:27 2012 -0700| [9fc00654018ff9f8a13dbe66785e31568a0c3229] | committer: Jason Garrett-Glaser

Fix pkg-config for dynamic vs static linking

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=9fc00654018ff9f8a13dbe66785e31568a0c3229
---

 configure |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index a9b5a83..dec3b93 100755
--- a/configure
+++ b/configure
@@ -1149,8 +1149,6 @@ echo "CLI_LIBX264 = $CLI_LIBX264" >> config.mak
 
 ${SRCPATH}/version.sh "${SRCPATH}" >> x264_config.h
 
-pclibs="-L$libdir -lx264 $libpthread"
-
 cat > x264.pc << EOF
 prefix=$prefix
 exec_prefix=$exec_prefix
@@ -1160,7 +1158,8 @@ includedir=$includedir
 Name: x264
 Description: H.264 (MPEG4 AVC) encoder library
 Version: $(grep POINTVER < x264_config.h | sed -e 's/.* "//; s/".*//')
-Libs: $pclibs
+Libs: -L$libdir -lx264
+Libs.private: $libpthread $libm
 Cflags: -I$includedir
 EOF
 



More information about the x264-devel mailing list