port: add 'notext' keyword linker support
[babeltrace.git] / configure.ac
index 7808ef451ba5440398b9cc8784809f9cecb48efd..85677c83dc64507171e0599db34790c42f4c253d 100644 (file)
@@ -68,6 +68,10 @@ AS_CASE([$host_os],
     [
        DEFAULT_ENABLE_DEBUG_INFO=no
     ],
+  [freebsd*],
+    [
+       DEFAULT_ENABLE_DEBUG_INFO=no
+    ],
   [cygwin*],
     [
        DEFAULT_ENABLE_DEBUG_INFO=no
@@ -171,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.024589 seconds and 4 git commands to generate.