Hi,

I use colorgcc in local here, and I feel bad not having my rainbow
compilation while building FFmpeg, so here is a patch trying to grab CC
and HOSTCC from the environment first.

Maybe some others could be detected like that, but this is imo the most
important ones.

Regards,

-- 
Clément B.
From 50e0086dd0815dd111eecf7c1121794ff644e183 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <ubi...@gmail.com>
Date: Tue, 5 Apr 2011 22:15:29 +0200
Subject: [PATCH] Add environment detection for CC and HOSTCC

---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 92a809f..a605f2d 100755
--- a/configure
+++ b/configure
@@ -1597,9 +1597,9 @@ shlibdir_default="$libdir_default"
 
 # toolchain
 ar_default="ar"
-cc_default="gcc"
+test "$CC" && cc_default="$CC" || cc_default="gcc"
 cc_version=\"unknown\"
-host_cc_default="gcc"
+test "$HOSTCC" && host_cc_default="$HOSTCC" || host_cc_default="gcc"
 ln_s="ln -sf"
 nm_default="nm"
 objformat="elf"
-- 
1.7.4.2

Attachment: pgppnsBpC1E37.pgp
Description: PGP signature

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to