Fix: add a configure check for weak symbols support
[lttng-ust.git] / configure.ac
index 18f373989b9bebeb1462bcadd3042ae54059e6b8..f84f42643ce9cefddc87aca85a6c77ab4f428160 100644 (file)
@@ -106,6 +106,13 @@ AC_CACHE_CHECK([whether the C++ compiler works],
 
 AM_CONDITIONAL([CXX_WORKS], [test "x$rw_cv_prog_cxx_works" = "xyes"])
 
+# Check if the compiler support weak symbols
+AX_SYS_WEAK_ALIAS
+
+if test "x${ax_cv_sys_weak_alias}" = "xno"; then
+   AC_MSG_ERROR([Your platform doesn't support weak symbols.])
+fi
+
 ## Checks for libraries.
 AC_CHECK_LIB([dl], [dlopen],
 [
This page took 0.02325 seconds and 4 git commands to generate.