pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper pass through -f flags that sunpro understan...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c93f1389d9d
branches:  trunk
changeset: 498259:1c93f1389d9d
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Aug 18 05:04:49 2005 +0000

description:
pass through -f flags that sunpro understands verbatim, drop other -f*
flags.

diffstat:

 mk/wrapper/transform-sunpro-cc |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 93b0ccf96553 -r 1c93f1389d9d mk/wrapper/transform-sunpro-cc
--- a/mk/wrapper/transform-sunpro-cc    Thu Aug 18 05:02:53 2005 +0000
+++ b/mk/wrapper/transform-sunpro-cc    Thu Aug 18 05:04:49 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-sunpro-cc,v 1.7 2005/08/18 05:02:53 grant Exp $
+# $NetBSD: transform-sunpro-cc,v 1.8 2005/08/18 05:04:49 grant Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -128,9 +128,23 @@
        split_arg=yes
        ;;
 ######################################################################
+# Pass through -f flags that SunPro understands.
+######################################################################
+-fast|-fd|-features*|-flags|-flteval*|-fnonstd*|-fns*|-fprecision*|-fround*|-fsimple*|-fsingle|-fstore|-ftrap*)
+       addtocache=yes
+       ;;
+######################################################################
+# Ignore all other -f flags.
+######################################################################
+-f*)
+       arg=
+       msg_log $wrapperlog "   (transform-sunpro-cc) to: $arg"
+       addtocache=yes
+       ;;
+######################################################################
 # Ignore some flags that are unnecessary for SunPro.
 ######################################################################
--ansi|-fno-gnu-keywords|-fomit-frame-pointer|-fpermissive|-fstrict-prototypes|-fwriteable-strings|-pedantic|-traditional)
+-ansi|-pedantic|-traditional)
        arg=
        msg_log $wrapperlog "   (transform-sunpro-cc) to: $arg"
        addtocache=yes



Home | Main Index | Thread Index | Old Index