[x264-devel] Fix pkg-config file
Brad Smith
brad at comstyle.com
Tue Aug 21 09:42:24 CEST 2012
The following diff fixes the generated pkg-config file
for dynamic vs static linking and adds the missing
libm as appropriate. This is dependent on the other
diff I sent earlier to set the libm variable.
diff --git a/configure b/configure
index 086b399..098d2e1 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
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the x264-devel
mailing list