pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/khtml www/khtml: use gnu++17 instead of c++17 to f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/13d57221961c
branches:  trunk
changeset: 385455:13d57221961c
user:      he <he%pkgsrc.org@localhost>
date:      Sat Sep 17 21:34:01 2022 +0000

description:
www/khtml: use gnu++17 instead of c++17 to fix NetBSD/macppc build issue.

This is required to correctly handle alloca(), which isn't in libc on
this particular variant, and is only handled by the compiler under
the gnu* variants.

diffstat:

 www/khtml/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r bcef3f47b46e -r 13d57221961c www/khtml/Makefile
--- a/www/khtml/Makefile        Sat Sep 17 21:26:40 2022 +0000
+++ b/www/khtml/Makefile        Sat Sep 17 21:34:01 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.66 2022/09/11 12:51:11 wiz Exp $
+# $NetBSD: Makefile,v 1.67 2022/09/17 21:34:01 he Exp $
 
 DISTNAME=      khtml-${KF5VER}
 PKGREVISION=   4
@@ -12,6 +12,9 @@
 MASTER_SITES=  ${MASTER_SITE_KDE:=frameworks/${KF5VER:R}/portingAids/}
 
 USE_TOOLS+=    perl msgfmt
+# Need gnu variant for built-in alloca()
+BUILDLINK_TRANSFORM+=  opt:-std=c99:-std=gnu99
+BUILDLINK_TRANSFORM+=  opt:-std=c++17:-std=gnu++17
 
 CMAKE_ARGS.SunOS+=     -DHAVE_ALLOCA_H=1
 



Home | Main Index | Thread Index | Old Index