[vlc-devel] [PATCH 1/4] Disable glibc runtime check if configure passed due to disable-{nls, mozilla}

davidf+nntp at woaf.net davidf+nntp at woaf.net
Thu May 7 14:47:35 CEST 2009


From: David Flynn <davidf at rd.bbc.co.uk>


Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
---
 configure.ac              |    2 ++
 src/misc/linux_specific.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index cdd2343..5f0dde3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -559,6 +559,8 @@ AC_PREPROC_IFELSE([
 work-around for this. Check with your distribution vendor on how to update the
 glibc run-time. Alternatively, build with --disable-nls --disable-mozilla and
 be sure to not use LibVLC from other applications/wrappers.])
+  ], [
+    AC_DEFINE(DISABLE_BUGGY_GLIBC_CHECK, 1, [Disables runtime check for buggy glibc.])
   ])
 ])
 
diff --git a/src/misc/linux_specific.c b/src/misc/linux_specific.c
index a9165c1..79c8807 100644
--- a/src/misc/linux_specific.c
+++ b/src/misc/linux_specific.c
@@ -90,7 +90,9 @@ void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
         fputs ("LibVLC has detected an unusable buggy GNU/libc version.\n"
                "Please update to version 2.8 or newer.\n", stderr);
         fflush (stderr);
+#ifndef DISABLE_BUGGY_GLIBC_CHECK
         abort ();
+#endif
     }
 #endif
 
-- 
1.5.6.5




More information about the vlc-devel mailing list