[x264-devel] [PATCH 1/9] build: Use 'DEPCC' for generating .depend, not 'CC'

Stephen Hutchinson qyot27 at gmail.com
Sat Apr 26 23:45:15 CEST 2014


---
 Makefile  | 2 +-
 configure | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 02db70a..6afb5ef 100644
--- a/Makefile
+++ b/Makefile
@@ -201,7 +201,7 @@ $(OBJS) $(OBJASM) $(OBJSO) $(OBJCLI) $(OBJCHK): .depend
 
 .depend: config.mak
 	@rm -f .depend
-	@$(foreach SRC, $(addprefix $(SRCPATH)/, $(SRCS) $(SRCCLI) $(SRCSO)), $(CC) $(CFLAGS) $(SRC) $(DEPMT) $(SRC:$(SRCPATH)/%.c=%.o) $(DEPMM) 1>> .depend;)
+	@$(foreach SRC, $(addprefix $(SRCPATH)/, $(SRCS) $(SRCCLI) $(SRCSO)), $(DEPCC) $(CFLAGS) $(SRC) $(DEPMT) $(SRC:$(SRCPATH)/%.c=%.o) $(DEPMM) 1>> .depend;)
 
 config.mak:
 	./configure
diff --git a/configure b/configure
index 5917895..f54bc78 100755
--- a/configure
+++ b/configure
@@ -422,6 +422,7 @@ done
 [ "$cli" = "no" -a "$shared" = "no" -a "$static" = "no" ] && die "Nothing to build. Enable cli, shared or static."
 
 CC="${CC-${cross_prefix}gcc}"
+DEPCC="${CC-${cross_prefix}gcc}"
 AR="${AR-${cross_prefix}ar}"
 RANLIB="${RANLIB-${cross_prefix}ranlib}"
 STRIP="${STRIP-${cross_prefix}strip}"
@@ -1159,6 +1160,7 @@ ARCH=$ARCH
 SYS=$SYS
 CC=$CC
 CFLAGS=$CFLAGS
+DEPCC=$DEPCC
 DEPMM=$DEPMM
 DEPMT=$DEPMT
 LD=$LD
-- 
1.9.1



More information about the x264-devel mailing list