summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/gnat-aux/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/gnat-aux/Makefile b/lang/gnat-aux/Makefile
index 3c41f8edd58..4cb8c432012 100644
--- a/lang/gnat-aux/Makefile
+++ b/lang/gnat-aux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2012/01/08 11:17:07 marino Exp $
+# $NetBSD: Makefile,v 1.9 2012/01/08 15:15:04 marino Exp $
#
PKGNAME= gnat-aux-${SNAPSHOT}
@@ -259,12 +259,17 @@ do-build:
do-test: build
.if !empty(PKG_OPTIONS:Mtestada)
+.if (${OPSYS} == "NetBSD") && (${MACHINE_ARCH} == "x86_64")
# NetBSD has an extremely small default stacksize of 2MB, which is
# insufficient for the gnat.dg testsuite.
# specifically: entry_queues test on AMD64
+ # Unlimiting stack resources on i386-netbsdelf* will result in
+ # failure of gnat.dg/task_stack_align.adb execution test.
cd ${BUILDDIR} && \
${ULIMIT_CMD_stacksize} && \
${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-ada
+.else
+ cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-ada
.endif
.if !empty(PKG_OPTIONS:Mfortran) && !empty(PKG_OPTIONS:Mtestfortran)
cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-fortran