summaryrefslogtreecommitdiff
path: root/mk/wrapper/transform-ccc-cc
blob: 0dbe8b8ec834244a2042cd9e7d062fb523fd19b3 (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.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