summaryrefslogtreecommitdiff
path: root/mk/wrapper/cmd-sink-irix-cc
diff options
context:
space:
mode:
Diffstat (limited to 'mk/wrapper/cmd-sink-irix-cc')
-rw-r--r--mk/wrapper/cmd-sink-irix-cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/mk/wrapper/cmd-sink-irix-cc b/mk/wrapper/cmd-sink-irix-cc
new file mode 100644
index 00000000000..9d0a7babce1
--- /dev/null
+++ b/mk/wrapper/cmd-sink-irix-cc
@@ -0,0 +1,24 @@
+# $NetBSD: cmd-sink-irix-cc,v 1.1 2008/02/19 17:36:51 tnn Exp $
+
+# Empty out the command buffer and build up the command line in $cmd.
+while ! queue_is_empty cmdbuf; do
+ pop_queue cmdbuf arg
+ $debug_log $wrapperlog " (cmd-sink-irix-cc) pop: $arg"
+ case $arg in
+ -R*|-Wl,-R*|-Wl,-rpath,*|-Wl,-rpath-link,*|-Wl,--rpath,*)
+ case $arg in
+ -R*) R="-R" ;;
+ -Wl,-R*) R="-Wl,-R" ;;
+ -Wl,-rpath,*) R="-Wl,-rpath," ;;
+ -Wl,-rpath-link,*) R="-Wl,-rpath-link," ;;
+ -Wl,--rpath,*) R="-Wl,--rpath," ;;
+ esac
+ dir="${arg#$R}"
+ arg="-Wl,-rpath,$dir"
+ . $buildcmd
+ ;;
+ *)
+ . $buildcmd
+ ;;
+ esac
+done