blob: 0a5e083a42ec11a2a45ed5b739e5eeaec278eb72 (
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
|
#!/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
|