Skip to content

Commit 73cbf70

Browse files
committed
openjdk11: backport alloca() fix from openjdk17
1 parent f7ec15c commit 73cbf70

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lang/openjdk11/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.84 2026/02/06 10:05:09 wiz Exp $
1+
# $NetBSD: Makefile,v 1.85 2026/03/03 20:34:52 tnn Exp $
22

33
DISTNAME= jdk11u-${GITHUB_TAG:C/\+/-/}
44
PKGNAME= openjdk11-1.${GITHUB_TAG:C/\+/./:C/jdk-([.0-9]+).*/\1/}
@@ -25,6 +25,10 @@ JAVA_WRAPPERS= jar jarsigner java javac javadoc javap jcmd jconsole jdb \
2525

2626
TOOL_DEPENDS+= mozilla-rootcerts>=1.0.20140820nb2:../../security/mozilla-rootcerts
2727

28+
# For alloca()
29+
BUILDLINK_TRANSFORM+= opt:-std=c99:-std=gnu99
30+
BUILDLINK_TRANSFORM+= opt:-std=c++11:-std=gnu++11
31+
2832
GNU_CONFIGURE= yes
2933
GNU_CONFIGURE_STRICT= no # generates the configure script during the build
3034
USE_GNU_CONFIGURE_HOST= no

0 commit comments

Comments
 (0)