Should make work properly linking against static libraries dynamically
linking secondary libraries.
---
Apparently yet another freetype cute feat.
configure | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 7c3a9f8..5846b60 100755
--- a/configure
+++ b/configure
@@ -918,8 +918,9 @@ 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)
+ enabled static && pkgconf_flags="--static"
+ pkg_cflags=$($pkg_config --cflags $pkgconf_flags $pkg)
+ pkg_libs=$($pkg_config --libs $pkgconf_flags $pkg)
check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" &&
set_safe ${pkg}_cflags $pkg_cflags &&
set_safe ${pkg}_libs $pkg_libs
--
1.8.5.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel