diff options
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7abade21c..98b515bd7 100644 --- a/configure.ac +++ b/configure.ac @@ -2902,6 +2902,19 @@ mv -f libtool.tmp libtool chmod +x libtool dnl --------------------------------------------- +dnl Libtool flag for Windows: +dnl +dnl The "-no-undefined" flag must be added after all other +dnl configure checks, because it is only for libtool and +dnl must not be passed to GCC by accident. +dnl --------------------------------------------- +case "$host_os" in + mingw* | cygwin*) + LDFLAGS="-no-undefined $LDFLAGS" + ;; +esac + +dnl --------------------------------------------- dnl Some infos: dnl --------------------------------------------- |