Force the ld "no-undefined" flag on Cygwin
[lttng-ust.git] / configure.ac
index 511da2e95c8b672efb593824cd684cb139030664..22d5ee5d6bd782ab8c0a836cfea843b85c89a4bd 100644 (file)
@@ -169,6 +169,10 @@ got it
                     [ust_cv_i386_is_x86_64=no])
                     CPPFLAGS="$save_CPPFLAGS"])
     ;;
+    # 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_MSG_CHECKING([library format for the host system])
This page took 0.022946 seconds and 4 git commands to generate.