pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/SDL2



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun Dec 25 16:25:06 UTC 2022

Modified Files:
        pkgsrc/devel/SDL2: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 pkgsrc/devel/SDL2/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/SDL2/Makefile
diff -u pkgsrc/devel/SDL2/Makefile:1.72 pkgsrc/devel/SDL2/Makefile:1.73
--- pkgsrc/devel/SDL2/Makefile:1.72     Sun Dec  4 18:07:47 2022
+++ pkgsrc/devel/SDL2/Makefile  Sun Dec 25 16:25:06 2022
@@ -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 @@ CONFIGURE_ARGS.NetBSD+=      --disable-oss
 
 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