diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-01-20 11:17:45 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-03-11 21:55:11 +0100 |
commit | 390acbea0697a60300f249602dbf701e04274693 (patch) | |
tree | 9698a800d33e7a3ddf8b307809a029f987ab547e /configure | |
parent | db9d39b4b5e5a3c20aeecf787ddeadd88f4906cf (diff) | |
download | ffmpeg-390acbea0697a60300f249602dbf701e04274693.tar.gz |
configure: Provide --pkg-config-flags
Should be used only to pass extra flags to pkgconf invocation,
e.g. --static.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -229,6 +229,8 @@ Advanced options (experts only): --cc=CC use C compiler CC [$cc_default] --dep-cc=DEPCC use dependency generator DEPCC [$cc_default] --ld=LD use linker LD + --pkg-config=PKGCONF use pkg-config PKGCONF [$pkg_config_default] + --pkg-config-flags=FLAGS pass additional flags to pkgconf [] --host-cc=HOSTCC use host C compiler HOSTCC --host-cflags=HCFLAGS use HCFLAGS when compiling for host --host-cppflags=HCPPFLAGS use HCPPFLAGS when compiling for host @@ -924,8 +926,8 @@ check_pkg_config(){ funcs="$3" shift 3 check_cmd $pkg_config --exists --print-errors $pkg || return - pkg_cflags=$($pkg_config --cflags $pkg) - pkg_libs=$($pkg_config --libs $pkg) + pkg_cflags=$($pkg_config --cflags $pkg_config_flags $pkg) + pkg_libs=$($pkg_config --libs $pkg_config_flags $pkg) check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" && set_safe ${pkg}_cflags $pkg_cflags && set_safe ${pkg}_libs $pkg_libs @@ -1547,6 +1549,7 @@ CMDLINE_SET=" nm optflags pkg_config + pkg_config_flags random_seed samples sysinclude |