2024-03-09 20:32:14 +01:00
|
|
|
#!/bin/sh
|
2015-10-22 23:54:34 +02:00
|
|
|
|
|
|
|
# Filter out unnecessary options added by automake
|
|
|
|
|
|
|
|
while [ -n "$*" ]; do
|
|
|
|
case "$1" in
|
|
|
|
-f | -o | -I | -i | -D )
|
|
|
|
# Supported options with arg
|
|
|
|
options="$options $1 $2"
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
;;
|
2021-10-12 15:55:54 +02:00
|
|
|
-isysroot | -iframeworkwithsysroot | -iwithsysroot | -framework | -arch )
|
2021-09-10 20:00:31 +02:00
|
|
|
# Unsupported options with arg
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
;;
|
2015-10-22 23:54:34 +02:00
|
|
|
-I* | -i* | --prefix* )
|
|
|
|
# Supported options without arg
|
|
|
|
options="$options $1"
|
|
|
|
shift
|
|
|
|
;;
|
2015-11-18 23:52:20 +01:00
|
|
|
-D* ) # For defines we need to remove spaces
|
|
|
|
case "$1" in
|
|
|
|
*' '* ) ;;
|
|
|
|
*) options="$options $1" ;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
;;
|
2015-10-22 23:54:34 +02:00
|
|
|
#-blah )
|
|
|
|
# Unsupported options with args - none known
|
|
|
|
-* )
|
|
|
|
# Unsupported options with no args
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
args="$args $1"
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
yasm $options $args
|