]> git.sesse.net Git - vlc/blobdiff - configure.ac
Ensure that shared objects have no unresolved symbols.
[vlc] / configure.ac
index 4ee2f0b6956a075160ea07922380fbb48990501e..4d3fc003114b375a88cf85438e9cf40c22631ae0 100644 (file)
@@ -891,6 +891,10 @@ CFLAGS="${CFLAGS_save}"
 RDC_PROG_CC_WFLAGS([all extra no-unused-parameter sign-compare undef pointer-arith bad-function-cast cast-align write-strings old-style-definition missing-prototypes packed volatile-register-var])
 RDC_PROG_CC_FLAGS_IFELSE([-pipe])
 
+dnl This helps detect broken plugins with undefined symbols
+dnl Better fail loudly at build-time than silenty at run-time.
+RDC_PROG_LINK_FLAGS_IFELSE([-Wl,-z,defs])
+
 dnl Check for various optimization flags
 AC_CACHE_CHECK([if \$CC accepts -Os],
     [ac_cv_c_os],