pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/SDL2 SDL2: disable SSE on i386



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7967bc5c8dc2
branches:  trunk
changeset: 390634:7967bc5c8dc2
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Dec 25 16:25:06 2022 +0000

description:
SDL2: disable SSE on i386

Reported to me some time ago by various users that SDL2 is not doing
runtime detection of SSE and will fault with illegal instruction on
certain older x86 machines.

diffstat:

 devel/SDL2/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r ff88b10a8458 -r 7967bc5c8dc2 devel/SDL2/Makefile
--- a/devel/SDL2/Makefile       Sun Dec 25 11:18:58 2022 +0000
+++ b/devel/SDL2/Makefile       Sun Dec 25 16:25:06 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.72 2022/12/04 18:07:47 adam Exp $
+# $NetBSD: Makefile,v 1.73 2022/12/25 16:25:06 nia Exp $
 
 DISTNAME=      SDL2-2.26.1
 CATEGORIES=    devel
@@ -35,6 +35,14 @@
 
 LDFLAGS.FreeBSD+=      -lusb
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+=       --disable-sse
+CONFIGURE_ARGS+=       --disable-ssemath
+CONFIGURE_ARGS+=       --disable-sse2
+.endif
+
 PKGCONFIG_OVERRIDE+=   sdl2.pc.in
 
 CHECK_PORTABILITY_SKIP+=       build-scripts/androidbuildlibs.sh



Home | Main Index | Thread Index | Old Index