Define private libraries as 'Libs:' when only static libraries are built,
authorAnssi Hannula <anssi.hannula@iki.fi>
Wed, 28 May 2008 23:54:04 +0000 (23:54 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 28 May 2008 23:54:04 +0000 (23:54 +0000)
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

configure

index 8255183..4a00c41 100755 (executable)
--- a/configure
+++ b/configure
@@ -2181,8 +2181,8 @@ Description: $comment
 Version: $version
 Requires: $requires
 Conflicts:
-Libs: -L\${libdir} -l${shortname}
-Libs.private: $libs
+Libs: -L\${libdir} -l${shortname} $(disabled shared && echo $libs)
+Libs.private: $(enabled shared && echo $libs)
 Cflags: -I\${includedir}
 EOF
 cat <<EOF > $name-uninstalled.pc
@@ -2196,8 +2196,7 @@ Description: $comment
 Version: $version
 Requires: $requires
 Conflicts:
-Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF}
-Libs.private: $libs
+Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs
 Cflags: -I\${includedir}
 EOF
 }