pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Minor reformatting. I'm still not sure what...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/74b7c2634b74
branches:  trunk
changeset: 522001:74b7c2634b74
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 30 11:34:23 2006 +0000

description:
Minor reformatting. I'm still not sure what the ideal indentation and
source code layout is. But at least, this file looks to me as if even
newbies could see where to change it to fit their needs.

diffstat:

 mk/wrapper/transform-gcc |  30 +++++++++++++-----------------
 1 files changed, 13 insertions(+), 17 deletions(-)

diffs (54 lines):

diff -r c760a0098486 -r 74b7c2634b74 mk/wrapper/transform-gcc
--- a/mk/wrapper/transform-gcc  Thu Nov 30 10:58:17 2006 +0000
+++ b/mk/wrapper/transform-gcc  Thu Nov 30 11:34:23 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-gcc,v 1.5 2006/11/30 10:01:29 rillig Exp $
+# $NetBSD: transform-gcc,v 1.6 2006/11/30 11:34:23 rillig Exp $
 #
 # This file handles the transformations needed for gcc that can be done
 # looking at only one argument at a time.
@@ -8,22 +8,13 @@
 
 case $arg in
 
+# Standard options.
 -[EcgOos]              |\
 -[DILlU]?*             |\
--O[01])
-       # Standard options.
-       transform_pass ;;
+-O[01]                 ) transform_pass ;;
 
+# GCC extensions.
 -fPIC                  |\
--KPIC                  |\
--kPIC)
-       # Needed for the Solaris imake.
-       transform_to "-fPIC" ;;
-
--mt)
-       # Needed on Solaris with SunPro.
-       transform_to "-threads" ;;
-
 -M[DFPT]               |\
 -O[23s]                        |\
 -pthread               |\
@@ -51,9 +42,14 @@
 -Wsign-compare         |\
 -Wstrict-prototypes    |\
 -Wswitch               |\
--Wwrite-strings)
-       transform_pass ;;
+-Wwrite-strings                ) transform_pass ;;
 
--*)
-       transform_pass_with_warning ;;
+# Other compiler's options that have corresponding GCC options.
+-KPIC                  |\
+-kPIC                  ) transform_to "-fPIC" ;;
+-mt                    ) transform_to "-threads" ;;
+
+# Unknown options.
+-*                     ) transform_pass_with_warning ;;
+
 esac



Home | Main Index | Thread Index | Old Index