xenocara/xserver/hw/xfree86/os-support/misc/Makefile.am
matthieu b8da768ee9 Disable SSE optimizations on i386/amd64 for SlowBcopy.
It is supposed to be slow, and when such instructions are used to copy
data from/to mapped video memory, some hypervisors (e.g. KVM,
Microsoft Hyper-V) can generate SIGILL or SIGBUS exceptions, causing
Xorg to crash.

Bug report to OpenBSD by Max Parmer, fix from FreeBSD (Dimitry Andric)
via kettenis@

ok kettenis@
2017-08-07 19:17:56 +00:00

18 lines
259 B
Makefile

noinst_LTLIBRARIES = libmisc.la
libmisc_la_SOURCES = SlowBcopy.c
#AM_LDFLAGS = -r
AM_CPPFLAGS = $(XORG_INCS)
if I386_VIDEO
NOSSE_CFLAGS = -mno-sse
endif
AM_CFLAGS = $(XORG_CFLAGS) $(DIX_CFLAGS) $(NOSSE_CFLAGS)
EXTRA_DIST = $(I386_SRCS) $(PORTIO_SRCS)