diff options
author | rillig <rillig> | 2006-11-30 10:01:29 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-11-30 10:01:29 +0000 |
commit | fd0777bb3898761f89fd3b7e67b75497f1374273 (patch) | |
tree | c130c1c775aa0cc8e209ba7cbe0fbbdb4a3993cc /mk/wrapper | |
parent | 6694d6a8c396d9b246faa4acee44c624104f500b (diff) | |
download | pkgsrc-fd0777bb3898761f89fd3b7e67b75497f1374273.tar.gz |
Reformatted the file to look more beautiful.
Reordered the compiler options to catch the standard ones first.
Diffstat (limited to 'mk/wrapper')
-rw-r--r-- | mk/wrapper/transform-gcc | 81 |
1 files changed, 39 insertions, 42 deletions
diff --git a/mk/wrapper/transform-gcc b/mk/wrapper/transform-gcc index c58c9274f8e..8f5e3dd3028 100644 --- a/mk/wrapper/transform-gcc +++ b/mk/wrapper/transform-gcc @@ -1,13 +1,21 @@ -# $NetBSD: transform-gcc,v 1.4 2006/11/26 14:39:52 rillig Exp $ +# $NetBSD: transform-gcc,v 1.5 2006/11/30 10:01:29 rillig Exp $ +# +# This file handles the transformations needed for gcc that can be done +# looking at only one argument at a time. # -# This file prints warning messages for all obscure gcc options into the -# wrapper log file. transform_setname "transform-gcc" case $arg in --KPIC|\ +-[EcgOos] |\ +-[DILlU]?* |\ +-O[01]) + # Standard options. + transform_pass ;; + +-fPIC |\ +-KPIC |\ -kPIC) # Needed for the Solaris imake. transform_to "-fPIC" ;; @@ -16,44 +24,33 @@ case $arg in # Needed on Solaris with SunPro. transform_to "-threads" ;; --c|\ --D?*|\ --E|\ --fPIC|\ --g|\ --I?*|\ --L?*|\ --l?*|\ --M[DFPT]|\ --O|\ --O[012345s]*|\ --o|\ --pthread|\ --shared|\ --static|\ --std=c99|\ --std=gnu99|\ --U?*|\ --W|\ --W[cLlS],*|\ --Wall|\ --Wcast-qual|\ --Wextra|\ --Werror|\ --Wformat=[012]|\ --Wmissing-prototypes|\ --Wno-error|\ --Wno-long-long|\ --Wno-traditional|\ --Wno-uninitialized|\ --Wno-unused|\ --Wno-write-strings|\ --Wpointer-arith|\ --Wreturn-type|\ --Wshadow|\ --Wsign-compare|\ --Wstrict-prototypes|\ --Wswitch|\ +-M[DFPT] |\ +-O[23s] |\ +-pthread |\ +-shared |\ +-static |\ +-std=c99 |\ +-std=gnu99 |\ +-W |\ +-W[cLlS],* |\ +-Wall |\ +-Wcast-qual |\ +-Wextra |\ +-Werror |\ +-Wformat=[012] |\ +-Wmissing-prototypes |\ +-Wno-error |\ +-Wno-long-long |\ +-Wno-traditional |\ +-Wno-uninitialized |\ +-Wno-unused |\ +-Wno-write-strings |\ +-Wpointer-arith |\ +-Wreturn-type |\ +-Wshadow |\ +-Wsign-compare |\ +-Wstrict-prototypes |\ +-Wswitch |\ -Wwrite-strings) transform_pass ;; |