From ac36c6cd44e8f46573ce3df0749d2f062fa35f3b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 12 Dec 2008 15:36:18 +0000 Subject: * Some hackery to make "make check" succeed on Cygwin. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d5e858123ec2..fdf898640a8b 100644 --- a/configure.ac +++ b/configure.ac @@ -270,6 +270,17 @@ if test "$(uname)" = "Darwin"; then fi +if test "$sys_name" = "cygwin"; then + # Dynamically linking against the ATerm DLL does work, except that it requires + # the ATerm "lib" directory to be in $PATH, as Windows doesn't have anything + # like an RPATH embedded in executable. Since this is kind of annoying, we + # use static libraries for now. This has to happen at the end of + # configure, because the C compiler doesn't know about -all-static + # (it's filtered out by libtool, but configure doesn't use libtool). + LDFLAGS="-all-static $LDFLAGS" +fi + + AM_CONFIG_HEADER([config.h]) AC_CONFIG_FILES([Makefile externals/Makefile -- cgit 1.4.1