Fix: add a configure check for weak symbols support
[lttng-ust.git] / configure.ac
index 86c54757f63e3a4a4fcdee22484376ce1e1b1b74..2d54dadd95fc66d1a437e7de6c0da292e1542694 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.0228080000000001 seconds and 4 git commands to generate.