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

Alan Coopersmith alan.coopersmith at oracle.com
Sun Apr 6 13:26:20 PDT 2014


On 04/ 6/14 12:45 PM, Yaakov (Cygwin/X) wrote:
> 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
>
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list