Small corrections. Compiles and builds.
[libt2n] / libt2n-gccxml.sh
CommitLineData
58f452c4
TJ
1#!/bin/sh
2
3# Filter "-pthread" option from newer gcc versions
4# as it's currently unsupported in gccxml.
5EOO=0
6while [[ $1 ]]; do
7if ! ((EOO)); then
8 case "$1" in
9 -pthread)
10 shift
11 ;;
12 --)
13 EOO=1
2d7579fd 14 OPTIONS="$OPTIONS $1"
58f452c4
TJ
15 shift
16 ;;
17 *)
2d7579fd 18 OPTIONS="$OPTIONS $1"
58f452c4
TJ
19 shift
20 ;;
21 esac
22else
2d7579fd 23 OPTIONS="$OPTIONS $1"
58f452c4
TJ
24 shift
25fi
26done
27
2d7579fd 28gccxml $OPTIONS