port: add 'notext' keyword linker support
[babeltrace.git] / configure.ac
index ee22576f5f07114d703c7c53cbec9c570c1b4b75..f5b0d39215fe4821522208e23e0c8ff0772cb189 100644 (file)
@@ -195,6 +195,11 @@ AX_CHECK_LINK_FLAG([-Wl,--whole-archive,--no-whole-archive],
 # Initialize and configure libtool
 LT_INIT([win32-dll])
 
+# 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.022853 seconds and 4 git commands to generate.