Browse code

Set AS to $CC by default, override with gcc only when CC is armcc

Originally committed as revision 17920 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2009/03/10 07:39:49
Showing 1 changed files
... ...
@@ -1147,7 +1147,6 @@ shlibdir_default="$libdir_default"
1147 1147
 
1148 1148
 # toolchain
1149 1149
 ar="ar"
1150
-as_default="gcc"
1151 1150
 cc_default="gcc"
1152 1151
 host_cc_default="gcc"
1153 1152
 ln_s="ln -sf"
... ...
@@ -1316,7 +1315,6 @@ set >> $logfile
1316 1316
 test -n "$cross_prefix" && enable cross_compile
1317 1317
 
1318 1318
 ar="${cross_prefix}${ar}"
1319
-as_default="${cross_prefix}${as_default}"
1320 1319
 cc_default="${cross_prefix}${cc_default}"
1321 1320
 nm_default="${cross_prefix}${nm_default}"
1322 1321
 ranlib="${cross_prefix}${ranlib}"
... ...
@@ -1324,7 +1322,8 @@ strip="${cross_prefix}${strip}"
1324 1324
 
1325 1325
 sysinclude_default="${sysroot}/usr/include"
1326 1326
 
1327
-set_default as cc nm sysinclude
1327
+set_default cc nm sysinclude
1328
+as_default=$cc
1328 1329
 enabled cross_compile || host_cc_default=$cc
1329 1330
 set_default host_cc
1330 1331
 
... ...
@@ -1404,10 +1403,13 @@ elif $cc --vsn 2>/dev/null | grep -q RVCT; then
1404 1404
         --configure_cpp_headers="$sysinclude" >>$logfile 2>&1 ||
1405 1405
         die "Error creating armcc configuration file."
1406 1406
     cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc"
1407
+    as_default="${cross_prefix}gcc"
1407 1408
 fi
1408 1409
 
1409 1410
 test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
1410 1411
 
1412
+set_default as
1413
+
1411 1414
 if test -n "$sysroot"; then
1412 1415
     case "$cc_type" in
1413 1416
         gcc)