From: Christian Babeux Date: Wed, 28 Nov 2012 01:31:47 +0000 (-0500) Subject: Force the ld "no-undefined" flag on Cygwin X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=858276a2e832704ad5c461e5db22cfd6c978b87a Force the ld "no-undefined" flag on Cygwin In order to build shared libraries on Cygwin/MinGW/Windows, all symbols must be defined at link time. Activating the "-no-undefined" flag will fail the build if it's not the case. --- diff --git a/configure.ac b/configure.ac index 511da2e9..22d5ee5d 100644 --- a/configure.ac +++ b/configure.ac @@ -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])