From: Brad Smith Date: Wed, 26 Sep 2012 21:13:27 +0000 (-0700) Subject: Fix pkg-config for dynamic vs static linking X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=9fc00654018ff9f8a13dbe66785e31568a0c3229;p=x264.git Fix pkg-config for dynamic vs static linking --- diff --git a/configure b/configure index a9b5a833..dec3b939 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