Port: Link with no-undefined on Windows
[babeltrace.git] / configure.ac
index 6d097bb6f8bfeae24727ab114509db16b0967ec4..b6741703207b7a4bce2df82ac9345cca423b713d 100644 (file)
@@ -128,6 +128,7 @@ AC_CHECK_FUNCS([ \
 
 MINGW32=no
 DEFAULT_ENABLE_DEBUG_INFO=yes
+LT_NO_UNDEFINED=""
 AS_CASE([$host_os],
   [solaris*|darwin*],
     [
@@ -136,10 +137,16 @@ AS_CASE([$host_os],
   [mingw*],
     [
        MINGW32=yes
+       LT_NO_UNDEFINED="-no-undefined"
+    ],
+  [cygwin*],
+    [
+       LT_NO_UNDEFINED="-no-undefined"
     ]
 )
 
 AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"])
+AC_SUBST(LT_NO_UNDEFINED)
 
 # Check what libraries are required on this platform to link sockets programs.
 AX_LIB_SOCKET_NSL
This page took 0.02735 seconds and 4 git commands to generate.