pkgsrc/mk/wrapper/transform-ccc-cc
2007-05-28 11:07:00 +00:00

29 lines
696 B
Text

# $NetBSD: transform-ccc-cc,v 1.6 2007/05/28 11:07:01 martti Exp $
#
transform_setname "transform-ccc-cc"
case $arg in
# Standard options (except -g, which is handled later).
-[cEOo] |\
-[DILlU]?* |\
-O[01] ) transform_pass ;;
# -g3 is required if debugging is wanted while optimizing with -O2.
-g ) transform_to "-g3" ;;
# Directories for the runtime library search path are passed via
# "-Wl,-rpath,<dir>", not "-Wl,-R<dir>".
-Wl,-R* ) transform_to "-Wl,-rpath,${arg#-Wl,-R}" ;;
-W[LlSc],* ) transform_pass ;;
# Ignore options that are likely to be GCC warnings.
-W* ) transform_discard_with_warning ;;
-mieee ) transform_to "-ieee" ;;
-* ) transform_pass_with_warning ;;
esac