pkgsrc/mk/buildlink3/mipspro-ucode-cc-post-logic
jlam 455aa176d8 Initial support for the MIPSpro ucode compilers found on IRIX 5.3. The
ucode compilers only support building the "o32" ABI.
2004-02-18 11:18:42 +00:00

41 lines
1 KiB
Text

# $NetBSD: mipspro-ucode-cc-post-logic,v 1.1 2004/02/18 11:18:42 jlam Exp $
#
# Silently accept some GCC compiler arguments by silently converting
# them to the MIPSpro compiler equivalents. This makes the MIPSpro
# compiler wrappers work with more software that seems to assume GCC
# nowadays.
case $arg in
-O[0123])
# MIPSpro can handle -O[0123] so just pass them on through.
;;
-O*)
# Ignore all other -O* options.
arg=
addtoprivatecache=yes
;;
-Wl,-R*)
# Directories for the runtime library search path are passed
# via "-Wl,-rpath,<dir>", not "-Wl,-R<dir>".
#
arg=`$echo "X$arg" | $Xsed -e "s|^-Wl,-R|-Wl,-rpath,|g"`
addtoprivatecache=yes
;;
-Wl,*)
# The MIPSpro compiler accepts these -W* directives, so just
# accept them and pass them on through.
;;
-W*)
# Ignore all of the other -W* directives, which are likely to
# be GCCisms.
#
arg=
addtoprivatecache=yes
;;
-f[Pp][Ii][Cc])
# The MIPSpro compiler uses -KPIC to create position independent code.
#
arg=-KPIC
addtoprivatecache=yes
;;
esac