From 858276a2e832704ad5c461e5db22cfd6c978b87a Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Tue, 27 Nov 2012 20:31:47 -0500 Subject: [PATCH] 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. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) 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]) -- 2.34.1