pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Made the SunPro compiler understand gcc's -...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/506b04c74f97
branches:  trunk
changeset: 521406:506b04c74f97
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Nov 11 07:00:57 2006 +0000

description:
Made the SunPro compiler understand gcc's -MM option for generating
Makefile dependencies.

diffstat:

 mk/wrapper/transform-sunpro-cc |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r ea3694f58e0d -r 506b04c74f97 mk/wrapper/transform-sunpro-cc
--- a/mk/wrapper/transform-sunpro-cc    Sat Nov 11 05:41:46 2006 +0000
+++ b/mk/wrapper/transform-sunpro-cc    Sat Nov 11 07:00:57 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.13 2006/10/26 07:01:46 rillig Exp $
+# $NetBSD: transform-sunpro-cc,v 1.14 2006/11/11 07:00:57 rillig Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -35,6 +35,11 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 case $arg in
+-MM)   # Create dependency lines for Makefiles
+       arg="-xM1"
+       $debug_log $wrapperlog "   (transform-sunpro-cc) to: $arg"
+       addtocache=yes
+       ;;
 ######################################################################
 # SunPro can handle -xO<n> (n={1|2|3|4|5}), so optimistically convert
 # those GCC -O<n> values to -xO<n>.



Home | Main Index | Thread Index | Old Index