summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Nagy <attilanagy@google.com>2011-01-20 14:46:57 +0200
committerAttila Nagy <attilanagy@google.com>2011-01-20 17:59:27 +0200
commit419553258d0839f1ac629b67b8c4520195705429 (patch)
tree0fbc4bc51ca4b11b9388bf10411f765d3444294c
parent815e1e9fe4ede2bc8e0e9b58cc58f84822a02f89 (diff)
downloadlibvpx-419553258d0839f1ac629b67b8c4520195705429.tar
libvpx-419553258d0839f1ac629b67b8c4520195705429.tar.gz
libvpx-419553258d0839f1ac629b67b8c4520195705429.tar.bz2
libvpx-419553258d0839f1ac629b67b8c4520195705429.zip
Update configure scripts
Add --extra-cflags as config parameter for user defined extra CFLAGS. Add -g to asflags when debug enabled for arm targets. Change-Id: Ibdde7cfdda6736c1c1db45e6466bd08504a51f15
-rwxr-xr-xbuild/make/configure.sh11
-rwxr-xr-xconfigure2
2 files changed, 11 insertions, 2 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index b65f3b73a..75279b9b9 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -78,6 +78,7 @@ Build options:
--log=yes|no|FILE file configure log is written to [config.err]
--target=TARGET target platform tuple [generic-gnu]
--cpu=CPU optimize for a specific cpu rather than a family
+ --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]
${toggle_extra_warnings} emit harmless warnings (always non-fatal)
${toggle_werror} treat warnings as errors, if possible
(not available with all compilers)
@@ -442,6 +443,9 @@ process_common_cmdline() {
;;
--cpu=*) tune_cpu="$optval"
;;
+ --extra-cflags=*)
+ extra_cflags="${optval}"
+ ;;
--enable-?*|--disable-?*)
eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
echo "${CMDLINE_SELECT} ${ARCH_EXT_LIST}" | grep "^ *$option\$" >/dev/null || die_unknown $opt
@@ -665,7 +669,7 @@ process_common_toolchain() {
check_add_cflags -march=${tgt_isa}
check_add_asflags -march=${tgt_isa}
fi
-
+ enabled debug && add_asflags -g
asm_conversion_cmd="${source_path}/build/make/ads2gas.pl"
;;
rvct)
@@ -690,6 +694,7 @@ process_common_toolchain() {
arch_int=${tgt_isa##armv}
arch_int=${arch_int%%te}
check_add_asflags --pd "\"ARCHITECTURE SETA ${arch_int}\""
+ enabled debug && add_asflags -g
;;
esac
@@ -972,6 +977,10 @@ EOF
add_cflags -D_LARGEFILE_SOURCE
add_cflags -D_FILE_OFFSET_BITS=64
fi
+
+ # append any user defined extra cflags
+ check_add_cflags ${extra_cflags} || \
+ die "Requested extra CFLAGS '${extra_cflags}' not supported by compiler"
}
process_toolchain() {
diff --git a/configure b/configure
index 5a502ae33..cb568d7aa 100755
--- a/configure
+++ b/configure
@@ -300,7 +300,7 @@ process_cmdline() {
optval="${opt#*=}"
case "$opt" in
--disable-codecs) for c in ${CODECS}; do disable $c; done ;;
- *) process_common_cmdline $opt
+ *) process_common_cmdline "$opt"
;;
esac
done