blob: c3c14b130ebc6faaa88c67fd81a7a2428e6dc281 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/sh -e
# libtool and yasm do not get along.
# filter out any crap that libtool feeds us that yasm does not understand.
#echo $0: got $*
new=""
touch=""
while [ -n "$*" ]; do
case "$1" in
-f )
shift
new="$new -f $1"
shift
;;
-g* | -f* | -W* | -MD | -MP | -fPIC | -c | -D* | -E | --param* | -O* | -m* | -pipe | ggc-min* | -pthread )
shift
;;
-I | -isystem )
shift
new="$new -i $1"
shift
;;
-MT )
shift
shift
;;
-MF )
shift
touch="$1"
shift
;;
* )
new="$new $1"
shift
;;
esac
done
#echo $0: yasm $new
yasm $new
[ -n "$touch" ] && touch $touch
true
|