port: add 'notext' keyword linker support
[babeltrace.git] / configure.ac
index 81cfa0d278366b2103f5f3eadbc28b2f05fef363..f5b0d39215fe4821522208e23e0c8ff0772cb189 100644 (file)
@@ -86,6 +86,10 @@ AS_CASE([$host_os],
     [
        DEFAULT_ENABLE_DEBUG_INFO=no
     ],
+  [freebsd*],
+    [
+       DEFAULT_ENABLE_DEBUG_INFO=no
+    ],
   [cygwin*],
     [
        DEFAULT_ENABLE_DEBUG_INFO=no
@@ -191,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.024436 seconds and 4 git commands to generate.