Skip to content

Commit

Permalink
webkit-gtk: Set USE_PKGSRC_GCC_(RUNTIME) when building on NetBSD 9
Browse files Browse the repository at this point in the history
We likely need this anyway since WebKit requires GCC 8 at minimum,
but forcing pkgsrc libgcc to be used (and thus bypassing the one
built with the custom build system in NetBSD that doesn't include
__fixdfti on aarch64) may be a useful workaround for PR toolchain/57022
  • Loading branch information
alarixnia committed Sep 25, 2022
1 parent 734a9a9 commit fffba2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion www/webkit-gtk/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.237 2022/09/16 19:56:33 leot Exp $
# $NetBSD: Makefile,v 1.238 2022/09/25 08:57:51 nia Exp $

DISTNAME= webkitgtk-2.36.8
PKGNAME= ${DISTNAME:S/webkitgtk/webkit-gtk/}
Expand Down Expand Up @@ -27,6 +27,13 @@ CTF_SUPPORTED= no
# GCC >= 8 is required, it no longer builds with lower versions.
GCC_REQD+= 8

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099915
USE_PKGSRC_GCC= yes
USE_PKGSRC_GCC_RUNTIME= yes
.endif

PKGCONFIG_OVERRIDE+= Source/JavaScriptCore/javascriptcoregtk.pc.in
PKGCONFIG_OVERRIDE+= Source/WebKit/gtk/webkit2gtk-web-extension.pc.in
PKGCONFIG_OVERRIDE+= Source/WebKit/gtk/webkit2gtk.pc.in
Expand Down

0 comments on commit fffba2d

Please sign in to comment.