]> git.proxmox.com Git - ceph.git/blame - ceph/src/yasm-wrapper
update sources to v12.2.4
[ceph.git] / ceph / src / yasm-wrapper
CommitLineData
7c673cae
FG
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 $*
6new=""
7touch=""
8while [ -n "$*" ]; do
9 case "$1" in
10 -f )
11 shift
12 new="$new -f $1"
13 shift
14 ;;
31f18b77 15 -g* | -f* | -W* | -MD | -MP | -fPIC | -c | -D* | -E | --param* | -O* | -m* | -pipe | ggc-min* | -pthread )
7c673cae
FG
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
37done
38
39#echo $0: yasm $new
40yasm $new
41
42[ -n "$touch" ] && touch $touch
43
44true