summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-11-30 11:34:23 +0000
committerrillig <rillig@pkgsrc.org>2006-11-30 11:34:23 +0000
commit87d17f2abbb2e7bd9c32b6153b8380a6c19872cb (patch)
treea72bdea074ad6e40e8eb2f5a3b39885c7a9ba79b /mk/wrapper
parent3377f0ddf5f3e300661ef69bc71b424c5c451400 (diff)
downloadpkgsrc-87d17f2abbb2e7bd9c32b6153b8380a6c19872cb.tar.gz
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 (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/transform-gcc30
1 files changed, 13 insertions, 17 deletions
diff --git a/mk/wrapper/transform-gcc b/mk/wrapper/transform-gcc
index 8f5e3dd3028..8db37424adf 100644
--- a/mk/wrapper/transform-gcc
+++ b/mk/wrapper/transform-gcc
@@ -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 @@ transform_setname "transform-gcc"
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 @@ case $arg in
-Wsign-compare |\
-Wstrict-prototypes |\
-Wswitch |\
--Wwrite-strings)
- transform_pass ;;
+-Wwrite-strings ) transform_pass ;;
+
+# Other compiler's options that have corresponding GCC options.
+-KPIC |\
+-kPIC ) transform_to "-fPIC" ;;
+-mt ) transform_to "-threads" ;;
+
+# Unknown options.
+-* ) transform_pass_with_warning ;;
--*)
- transform_pass_with_warning ;;
esac