pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/babl babl: disable segfaulting mmx intrinsics...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/33fdf62af990
branches:  trunk
changeset: 375729:33fdf62af990
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Mar 23 22:27:34 2022 +0000

description:
babl: disable segfaulting mmx intrinsics with GCC7. Bump.

diffstat:

 graphics/babl/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r a0166321285a -r 33fdf62af990 graphics/babl/Makefile
--- a/graphics/babl/Makefile    Wed Mar 23 21:16:53 2022 +0000
+++ b/graphics/babl/Makefile    Wed Mar 23 22:27:34 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2022/03/05 12:19:41 tnn Exp $
+# $NetBSD: Makefile,v 1.45 2022/03/23 22:27:34 tnn Exp $
 
 DISTNAME=      babl-0.1.90
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  https://download.gimp.org/pub/babl/${PKGVERSION_NOREV:R}/
 EXTRACT_SUFX=  .tar.xz
@@ -36,6 +37,13 @@
 PLIST.x86_64=          yes
 .endif
 
+.include "../../mk/compiler.mk"
+
+.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
+       !empty(CC_VERSION:Mgcc-7.*)
+MESON_ARGS+=   -Denable-mmx=false
+.endif
+
 # Apply removals to post-wrapper transformed arguments.
 BUILDLINK_TRANSFORM.Darwin+=   rm:-Wl,--version-script
 BUILDLINK_TRANSFORM.Darwin+=   rm:-Wl,babl.map



Home | Main Index | Thread Index | Old Index