[vlc-devel] commit: Refuse to proceed with --disable-shared. ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Oct 31 16:23:40 CET 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 31 17:22:04 2009 +0200| [c33e84af9b436a3f76f6adf01165c54b4f918d16] | committer: Rémi Denis-Courmont 

Refuse to proceed with --disable-shared.

This cannot work the way VLC links its plugins. Too many people shot
themselves in the foot with this option.
(cherry picked from commit 6b856a9d8f1301b387e1a73aa3c6213a5cddfc71)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c33e84af9b436a3f76f6adf01165c54b4f918d16
---

 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6a0ac8b..2b76420 100644
--- a/configure.ac
+++ b/configure.ac
@@ -442,6 +442,9 @@ m4_defun([AC_DEPLIBS_CHECK_METHOD],[])
 
 lt_cv_deplibs_check_method=pass_all
 
+AS_IF([test "${enable_shared}" = "no"], [
+  AC_MSG_ERROR([VLC is based on plugins. Shared libraries cannot be disabled.])
+])
 
 dnl
 dnl Gettext stuff




More information about the vlc-devel mailing list