Commit c106ef79 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Accept libtool archives and libtool objects as well as plugin names

parent 0543248d
...@@ -158,7 +158,23 @@ while test $# -gt 0; do ...@@ -158,7 +158,23 @@ while test $# -gt 0; do
*) optarg= ;; *) optarg= ;;
esac esac
case "$1" in # Mangle plugin name, if applicable
# This is just a convenience hack for modules/common.am
tgt="$1"
case "$tgt" in
lib*_plugin_la-*.lo)
tgt="${tgt#lib}"
tgt="${tgt%_plugin_la-*.lo}"
;;
lib*_plugin.la)
tgt="${tgt#lib}"
tgt="${tgt%_plugin.la}"
;;
*)
;;
esac
case "$tgt" in
--prefix=*) --prefix=*)
prefix="${optarg}" prefix="${optarg}"
if test "${exec_prefix_set}" = no ; then if test "${exec_prefix_set}" = no ; then
...@@ -229,15 +245,15 @@ while test $# -gt 0; do ...@@ -229,15 +245,15 @@ while test $# -gt 0; do
libs="${libs} -lvlc -lvlc-control" libs="${libs} -lvlc -lvlc-control"
;; ;;
*) *)
module="$1" module="$tgt"
;; ;;
esac esac
# Register per-module *FLAGS # Register per-module *FLAGS
register_flags "$1" register_flags "$tgt"
# Register module targets # Register module targets
register_targets "$1" register_targets "$tgt"
shift shift
done done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment