Commit 12701f6e authored by Anssi Hannula's avatar Anssi Hannula Committed by Diego Biurrun
Browse files

Define private libraries as 'Libs:' when only static libraries are built,

so that they work correctly even without pkgconfig's --static option.
patch by Anssi Hannula, anssi.hannula gmail com

Originally committed as revision 13514 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 161dab17
...@@ -2181,8 +2181,8 @@ Description: $comment ...@@ -2181,8 +2181,8 @@ Description: $comment
Version: $version Version: $version
Requires: $requires Requires: $requires
Conflicts: Conflicts:
Libs: -L\${libdir} -l${shortname} Libs: -L\${libdir} -l${shortname} $(disabled shared && echo $libs)
Libs.private: $libs Libs.private: $(enabled shared && echo $libs)
Cflags: -I\${includedir} Cflags: -I\${includedir}
EOF EOF
cat <<EOF > $name-uninstalled.pc cat <<EOF > $name-uninstalled.pc
...@@ -2196,8 +2196,7 @@ Description: $comment ...@@ -2196,8 +2196,7 @@ Description: $comment
Version: $version Version: $version
Requires: $requires Requires: $requires
Conflicts: Conflicts:
Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs
Libs.private: $libs
Cflags: -I\${includedir} Cflags: -I\${includedir}
EOF EOF
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment