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

Måns Rullgård mans
Wed Oct 1 14:09:28 CEST 2008


Diego 'Flameeyes' Petten? wrote:
> 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
>  }

Is there some (stupid, naturally (this is pkgconfig after all)) reason why
a simple -L${libdir} -l${shortname} won't work with static libs?

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list