summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2014-04-06 14:41:56 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2014-08-10 13:24:54 -0500
commita3498cecb300d20ddaab033a8dbda72df52a8b3b (patch)
treef9b4453ebc2767a1e213ee1d4082f097a66dc4d1
parent1c8459eafc04997751ae3d200d0ec91e43e19b5b (diff)
Fix CFLAGS and LDFLAGS for Cygwin/MinGW
As in xserver, FD_SETSIZE must be overridden due to a too-low default, and symbols must be exported for compatibility with the shared libXfont stub handling on these platforms. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0e44644..243e487 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,6 +132,12 @@ AC_CHECK_FUNCS([daemon])
# - xfont >= 1.4.5 required for matching MakeAtom prototypes in fontmisc.h
PKG_CHECK_MODULES(XFS, xproto >= 7.0.17 xfont >= 1.4.5 xtrans)
+case "$host_os" in
+ cygwin*|mingw*)
+ CFLAGS="$CFLAGS -DFD_SETSIZE=256"
+ LDFLAGS="$LDFLAGS -Wl,--export-all" ;;
+esac
+
# Transport selection macro from xtrans.m4
XTRANS_CONNECTION_FLAGS