[FFmpeg-devel] [PATCH] Fix pkg-config -uninstalled.pc when static libraries are disabled.

Diego 'Flameeyes' Pettenò flameeyes
Wed Oct 1 13:18:39 CEST 2008


The -uninstalled.pc pkg-config files rely on the presence of the
static version of the libraries when linking to it, but they might be
disabled.

When the static version of the libraries is disabled, use the shared
version by just giving the search path and the library name, so that
it still works.
---

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

diff --git a/configure b/configure
index 8b54550..0fb0721 100755
--- a/configure
+++ b/configure
@@ -2261,7 +2261,8 @@ Description: $comment
 Version: $version
 Requires: $requires
 Conflicts:
-Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs
+Libs: $(enabled static && echo "\${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs") $(disabled static && echo "-L\${libdir} -l${shortname}")
+Libs.private: $(disabled static && echo "$libs")
 Cflags: -I\${includedir}
 EOF
 }





More information about the ffmpeg-devel mailing list