Merge pull request #56974 from rhcs-dashboard/fix-xmlsec-issue
[ceph.git] / src / yasm-wrapper
1 #!/bin/sh -e
2
3 # libtool and yasm do not get along.
4 # filter out any crap that libtool feeds us that yasm does not understand.
5 #echo $0: got $*
6 new=""
7 touch=""
8 while [ -n "$*" ]; do
9     case "$1" in
10         -f )
11             shift
12             new="$new -f $1"
13             shift
14             ;;
15         -g* | -f* | -W* | -MD | -MP | -fPIC | -c | -D* | -E | --param* | -O* | -m* | -pipe | ggc-min* | -pthread )
16             shift
17             ;;
18         -I | -isystem )
19             shift
20             new="$new -i $1"
21             shift
22             ;;
23         -MT )
24             shift
25             shift
26             ;;
27         -MF )
28             shift
29             touch="$1"
30             shift
31             ;;
32         * )
33             new="$new $1"
34             shift
35             ;;
36     esac
37 done
38
39 #echo $0: yasm $new
40 yasm $new
41
42 [ -n "$touch" ] && touch $touch
43
44 true