Force the ld "no-undefined" flag on Cygwin
[lttng-tools.git] / configure.ac
index 2b6b68739f3717a984bb53e8ba3835611340eea8..dc2af5829f7d1824e32c8d436b059abe0c5d93af 100644 (file)
@@ -187,6 +187,13 @@ AX_CONFIG_FEATURE(
 )
 AM_CONDITIONAL([COMPAT_EPOLL], [ test "$enable_epoll" = "yes" ])
 
+case "${host}" in
+    # All symbols must be resolved at link time on Cygwin/MinGW/Windows,
+    # else libtool will not be able to build shared libraries.
+    *-*-cygwin*)
+    LDFLAGS="-Wl,-no-undefined $LDFLAGS";;
+esac
+
 AC_SYS_LARGEFILE
 AC_PROG_CC
 LT_INIT
This page took 0.023217 seconds and 4 git commands to generate.