diff options
Diffstat (limited to 'ld-gnu-to-sun')
-rwxr-xr-x | ld-gnu-to-sun | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ld-gnu-to-sun b/ld-gnu-to-sun new file mode 100755 index 0000000..0a5e083 --- /dev/null +++ b/ld-gnu-to-sun @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e +set -u + +cmd=/usr/bin/sunld + +while [ $# -ne 0 ]; do + case "$1" in + # GCC with GNU ld passes -m <emulation>, + # Sun ld does not need it, and -m options has different meaning: + -m) shift || true;; + + # Ignore long options, Sun ld does not support long options at all: + --*) ;; + + *) cmd="$cmd $1" ;; + esac + shift || true +done + +# Trace: +set -x +exec $cmd + +exit 0 + |