summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorgrant <grant>2004-11-27 15:28:34 +0000
committergrant <grant>2004-11-27 15:28:34 +0000
commit9c6643f237c8eebaa34eaeea87e46af1e3fc7e21 (patch)
treeab7247f32787ef78c41d70e86635ed08c2fc92b8 /mk/compiler
parent6b29c9a5c57871723520b280771adcb2527ef869 (diff)
downloadpkgsrc-9c6643f237c8eebaa34eaeea87e46af1e3fc7e21.tar.gz
CFLAGS+=-ma because most packages expect alloca to be available and
this makes it so with xlc.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/xlc.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler/xlc.mk b/mk/compiler/xlc.mk
index c410f799712..87b011049c9 100644
--- a/mk/compiler/xlc.mk
+++ b/mk/compiler/xlc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: xlc.mk,v 1.5 2004/11/23 05:32:22 jlam Exp $
+# $NetBSD: xlc.mk,v 1.6 2004/11/27 15:28:34 grant Exp $
.if !defined(COMPILER_XLC_MK)
COMPILER_XLC_MK= defined
@@ -47,6 +47,10 @@ CC_VERSION?= IBM XL C
PREPEND_PATH+= ${_XLC_DIR}/bin
.endif
+# Most packages assume alloca is available without #pragma alloca, so
+# make it the default.
+CFLAGS+=-ma
+
# Create compiler driver scripts in ${WRKDIR}.
.for _target_ in ${_XLC_LINKS}
. if !target(${${_target_}})