Skip to content

Commit b01653a

Browse files
Robert Paskowitznratelle
Robert Paskowitz
authored andcommitted
Allow passing additional options to ./configure
Added to allow enabling xmlpatterns, required for PySide
1 parent 1d30cb5 commit b01653a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

configure-qsk

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@ function usage() {
88

99
if [ "$1" == "arm" ]; then
1010
if [ "$2" == "v7le" ] || [ "$2" == "a9" ]; then
11+
# Shift architecture and cpu off $@
12+
shift
13+
shift
1114
CPUDIR="armle-v7"
1215
CPU="armv7le"
16+
ARCH="arm"
1317
else
1418
usage
1519
fi
1620
elif [ "$1" == "x86" ]; then
21+
# Shift arch off $@
22+
shift
1723
CPUDIR="x86"
1824
CPU="x86"
25+
ARCH="x86"
1926
else
2027
usage
2128
fi
@@ -56,6 +63,9 @@ if [ ! -z "$BUILD_TESTS" ] ; then
5663
echo "Developer build enabled for testing"
5764
fi
5865

66+
# Pass extra options along
67+
EXTRAOPTS="$EXTRAOPTS $@"
68+
5969
echo Extra configure options: $EXTRAOPTS
6070

6171
# Use GLES1 for simulator and GLES2 for device
@@ -77,7 +87,7 @@ fi
7787
-release \
7888
-xplatform $USE_MKSPEC \
7989
-little-endian \
80-
-arch $1 \
90+
-arch $ARCH \
8191
-no-largefile \
8292
-nomake examples \
8393
-xmlpatterns \

0 commit comments

Comments
 (0)