Fix: Tests: use -no-pie linker option only when available
[lttng-tools.git] / configure.ac
index acae225ad707860220725f6a6632253ec9a2bd7b..f5501cebdfea99d6e994f1a694410ec50f218780 100644 (file)
@@ -112,6 +112,10 @@ AS_IF([test "x$ax_cv___attribute__" = "xyes"],
 
 AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
 
+# Check if linker has the -no-pie option.
+AX_CHECK_LINK_FLAG([-no-pie], [linker_have_no_pie_option=yes])
+AM_CONDITIONAL([LINKER_HAVE_NO_PIE_OPTION], [test "x$linker_have_no_pie_option" = "xyes"])
+
 AX_LIB_SOCKET_NSL
 
 LT_NO_UNDEFINED=""
This page took 0.024617 seconds and 5 git commands to generate.