[PATCH xfs] Fix CFLAGS and LDFLAGS for Cygwin/MinGW

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Sun Apr 6 12:45:19 PDT 2014


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

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 at users.sourceforge.net>
---
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index e604555..e00fee4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,6 +133,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
 
-- 
1.8.5.5



More information about the xorg-devel mailing list