pkgsrc/mk/wrapper/transform-gcc

56 lines
1,018 B
Text
Raw Normal View History

# $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.
#
transform_setname "transform-gcc"
case $arg in
# Standard options.
-[EcgOos] |\
-[DILlU]?* |\
-O[01] ) transform_pass ;;
# GCC extensions.
-fPIC |\
-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 ;;
# 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