diff options
author | grant <grant@pkgsrc.org> | 2004-11-27 15:28:34 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-11-27 15:28:34 +0000 |
commit | e71f192b3779b623de754e956a63703f9013b99c (patch) | |
tree | ab7247f32787ef78c41d70e86635ed08c2fc92b8 /mk/compiler | |
parent | 99649a96f36679d392c25c848de8ee939455c4e1 (diff) | |
download | pkgsrc-e71f192b3779b623de754e956a63703f9013b99c.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.mk | 6 |
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_}}) |