diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-18 11:18:42 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-18 11:18:42 +0000 |
commit | 455aa176d81c2667059f4e9a5fe935d61d4ed2f1 (patch) | |
tree | cc7da8e9457392b0958c99992cb5559b55f862ec /mk/buildlink3 | |
parent | 78080df5979045c7b6f2687bb17c7870b1cc8a41 (diff) | |
download | pkgsrc-455aa176d81c2667059f4e9a5fe935d61d4ed2f1.tar.gz |
Initial support for the MIPSpro ucode compilers found on IRIX 5.3. The
ucode compilers only support building the "o32" ABI.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/mipspro-ucode-cc-post-cache | 12 | ||||
-rw-r--r-- | mk/buildlink3/mipspro-ucode-cc-post-logic | 41 |
2 files changed, 53 insertions, 0 deletions
diff --git a/mk/buildlink3/mipspro-ucode-cc-post-cache b/mk/buildlink3/mipspro-ucode-cc-post-cache new file mode 100644 index 00000000000..10d7931918f --- /dev/null +++ b/mk/buildlink3/mipspro-ucode-cc-post-cache @@ -0,0 +1,12 @@ +# $NetBSD: mipspro-ucode-cc-post-cache,v 1.1 2004/02/18 11:18:42 jlam Exp $ +# +# This file implements the default action of the "cc" private cache +# for the MIPSpro ucode suite of compilers, and tells the wrapper to skip +# the common cache lookup for all GCC arguments that the MIPSpro compiler +# can't handle; they will instead by handled directly by +# mipspro-cc-post-logic. + +-[OW]*|-f[pP][iI][cC]) + skipcache=yes + ;; +esac diff --git a/mk/buildlink3/mipspro-ucode-cc-post-logic b/mk/buildlink3/mipspro-ucode-cc-post-logic new file mode 100644 index 00000000000..9b4377c1353 --- /dev/null +++ b/mk/buildlink3/mipspro-ucode-cc-post-logic @@ -0,0 +1,41 @@ +# $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 |