pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler CFLAGS+=-ma because most packages expect a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27a894ced6f5
branches:  trunk
changeset: 484455:27a894ced6f5
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Nov 27 15:28:34 2004 +0000

description:
CFLAGS+=-ma because most packages expect alloca to be available and
this makes it so with xlc.

diffstat:

 mk/compiler/xlc.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 7b3d11d1ce16 -r 27a894ced6f5 mk/compiler/xlc.mk
--- a/mk/compiler/xlc.mk        Sat Nov 27 15:28:30 2004 +0000
+++ b/mk/compiler/xlc.mk        Sat Nov 27 15:28:34 2004 +0000
@@ -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 @@
 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_}})



Home | Main Index | Thread Index | Old Index