aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-03-05 21:20:08 +0000
committerMåns Rullgård <mans@mansr.com>2009-03-05 21:20:08 +0000
commit03e3776293f7e40f10b8dee8e97679f84a8fef36 (patch)
tree0efb24b4ec0e826d7bf770cf0fb60a6c310b3193 /configure
parentf65883c81264548f1f0a31f7c8cf8512924f8456 (diff)
downloadffmpeg-03e3776293f7e40f10b8dee8e97679f84a8fef36.tar.gz
ARM: detect armcc compiler and enable gcc mode
Originally committed as revision 17829 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index d59d81e6e3..1e804e16d2 100755
--- a/configure
+++ b/configure
@@ -1389,6 +1389,16 @@ elif $cc -V 2>/dev/null | grep -q Compaq; then
DEPEND_CMD='$(CC) $(CFLAGS) -M $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
debuglevel=3
add_ldflags -Wl,-z,now # calls to libots crash without this
+elif $cc --vsn 2>/dev/null | grep -q RVCT; then
+ test -d "$sysroot" || die "No valid sysroot specified."
+ cc_type=armcc
+ armcc_conf="$PWD/armcc.conf"
+ $cc --arm_linux_configure \
+ --arm_linux_config_file="$armcc_conf" \
+ --configure_sysroot="$sysroot" \
+ --configure_cpp_headers="$sysinclude" >>$logfile 2>&1 ||
+ die "Error creating armcc configuration file."
+ cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc"
fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"