aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-07-12 13:29:43 +0000
committerMåns Rullgård <mans@mansr.com>2009-07-12 13:29:43 +0000
commit50567afa5a2afe1e19e75842115749905099bfc7 (patch)
tree1a10f62a9fcc3692938475ce793676d01912fb75
parent684b28e09c868d185cdec2713c9df4e30f9d7260 (diff)
downloadffmpeg-50567afa5a2afe1e19e75842115749905099bfc7.tar.gz
Use DEPCC to find dependencies, default to same as CC
Originally committed as revision 19408 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index b6956412d1..8660c40289 100755
--- a/configure
+++ b/configure
@@ -995,6 +995,7 @@ CMDLINE_SET="
cc
cpu
cross_prefix
+ dep_cc
extra_version
host_cc
host_cflags
@@ -1269,7 +1270,7 @@ target_path='.'
# gcc stupidly only outputs the basename of targets with -MM, but we need the
# full relative path for objects in subdirectories for non-recursive Make.
-DEPEND_CMD='$(CC) $(CPPFLAGS) -MM $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
+DEPEND_CMD='$(DEPCC) $(CPPFLAGS) -MM $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
# find source path
source_path="$(dirname "$0")"
@@ -1487,8 +1488,9 @@ fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
+: ${dep_cc_default:=$cc}
: ${ld_default:=$cc}
-set_default as ld
+set_default as dep_cc ld
if test -n "$sysroot"; then
case "$cc_type" in
@@ -2480,6 +2482,7 @@ echo "BUILD_ROOT=\"$PWD\"" >> config.mak
echo "CC=$cc" >> config.mak
echo "AS=$as" >> config.mak
echo "LD=$ld" >> config.mak
+echo "DEPCC=$dep_cc" >> config.mak
echo "YASM=$yasmexe" >> config.mak
echo "AR=$ar" >> config.mak
echo "RANLIB=$ranlib" >> config.mak