summaryrefslogtreecommitdiff
path: root/mk/wrapper/transform-ccc-cc
blob: 1d98b8571f50a67b8357c8b47111fe57ac74d4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $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