port: add 'notext' keyword linker support
[babeltrace.git] / configure.ac
index 7f92c465715474db8de38c28d7a1dc6a7e2f15bf..85677c83dc64507171e0599db34790c42f4c253d 100644 (file)
@@ -175,6 +175,11 @@ AX_CHECK_LINK_FLAG([-Wl,--whole-archive,--no-whole-archive],
   ]
 )
 
+# Check if the linker supports the "notext" keyword
+AX_CHECK_LINK_FLAG([-Wl,-z,notext],[
+       AC_SUBST([LD_NOTEXT], [-Wl,-z,notext])
+])
+
 
 ##                 ##
 ## Programs checks ##
This page took 0.024524 seconds and 4 git commands to generate.