This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Fix for libGL building problems
- From: Joe Krahn <jkrahn at nc dot rr dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Sun, 21 Aug 2005 16:46:23 -0400
- Subject: Fix for libGL building problems
- Reply-to: cygwin-xfree at cygwin dot com
In extras/Mesa/src/glx/x11/, some functions from compsize.c were moved
to indirect_size.c. Some of these are implemented as function aliases,
which does not work correctly under Cygwin. Cygwin uses these in
Xserver/GL/windows/. This might be a problem in some other cases as
well, but it works to add a !defined(__CYGWIN__) in indirect_size.c and
indirect_size.h like this (I don't have CVS write access):
# if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)) &&
!defined(__CYGWIN__)
# define HAVE_ALIAS
# endif
I also noticed the inclusion of a visibility attribute based on the GCC
version. Cygwin (and others?) does not support this either, but it is
less critical because it seems to only cause "attribute ignored" warnings.
Joe Krahn
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/