Fix: add a configure check for weak symbols support
[lttng-ust.git] / configure.ac
index 89ee457cecdc17580df3596d4a1bd7a9b09e73d8..2dfc398433de94d96011d06001e93800e5199ef3 100644 (file)
@@ -103,6 +103,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.023429 seconds and 4 git commands to generate.