]> gitweb @ CieloNegro.org - pkgsrc-xorg-server.git/blob - mesaconfig.mk
The original wip/modular-xorg-server
[pkgsrc-xorg-server.git] / mesaconfig.mk
1 # $NetBSD$
2 ###
3 ###
4 ### XXX This is the default heap size.  Would there be an occasion to
5 ### change it?  It seems large, so we should investigate further.
6 ###
7 .include "../../mk/bsd.fast.prefs.mk"
8
9 .if !empty(OPSYS:M*BSD) || ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly"
10 CFLAGS+=        -DUSE_NATIVE_LIBM_FUNCS
11 .endif
12
13 .if !empty(MACHINE_ARCH:Mi386)
14 ###
15 ### This is taken from <sys/arch/i386/include/npx.h>.  If we don't override
16 ### it, the FPU control word will be restored to 0x037f.
17 ###
18 ### Also, see patch-aq about the libm functions required (float functions
19 ### such as floorf).  Proper configuration of this should be a goal of
20 ### the Mesa developers; alas, it obviously is not.
21 ###
22 ### XXX We need a reliable check for these functions.
23 ###
24 #/* NetBSD uses IEEE double precision. */
25 CFLAGS.NetBSD+=         -DDEFAULT_X86_FPU=0x127f
26 ###
27 ###
28 #/* FreeBSD leaves some exceptions unmasked as well. */
29 ###
30 CFLAGS.FreeBSD+=        -DDEFAULT_x86_FPU=0x1272
31 .endif