29 lines
670 B
Text
29 lines
670 B
Text
# $NetBSD: transform-ccc-cc,v 1.4 2006/11/30 11:58:55 rillig Exp $
|
|
#
|
|
|
|
transform_setname "transform-ccc-cc"
|
|
|
|
case $arg in
|
|
|
|
# Standard options (except -g, which is handled later).
|
|
-[cEOo] |\
|
|
-[DILlU]?* |\
|
|
-O[01] ) transform_pass ;;
|
|
|
|
# XXX: What's the benefit of -g3 over -g?
|
|
-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
|