From 62d71fe1d2c90a77c699f1e6fdb199b969461ea6 Mon Sep 17 00:00:00 2001 From: Sigmund Augdal Helberg Date: Thu, 9 Dec 2004 15:27:48 +0000 Subject: [PATCH] vlc-config.in.in: added a new "external" target that allow external projects to link with a make installed libvlc --- vlc-config.in.in | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/vlc-config.in.in b/vlc-config.in.in index 9353452392..241081853e 100644 --- a/vlc-config.in.in +++ b/vlc-config.in.in @@ -202,6 +202,10 @@ while test $# -gt 0; do ;; mozilla) ;; + external) + echo_external=yes + ldflags="${ldflags} -lvlc" + ;; *) module="$1" ;; @@ -293,6 +297,20 @@ if test "${echo_libs}" = yes; then for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done fi fi + if test "${echo_external}" = yes; then + if test "${echo_pic}" = yes; then + for module in `echo "${builtins}"`; do + ldflags="${ldflags} @libdir@/vlc/lib${module}_pic.a" + done + else + for module in `echo "${builtins}"`; do + ldflags="${ldflags} @libdir@/vlc/lib${module}.a" + done + fi + for module in `echo "${builtins}"`; do + register_flags "${module}" + done + register_flags "vlc" + fi echo "${libs} ${ldflags}" fi - -- 2.39.2