From: Tom Tromey Date: Sun, 28 Sep 1997 21:56:39 +0000 (+0000) Subject: dependency fix from ian X-Git-Tag: Release-1-2c~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38cf778f68a61f92986e37a379a42ebe7199f81a;p=thirdparty%2Fautomake.git dependency fix from ian --- diff --git a/ChangeLog b/ChangeLog index a4417c332..b2cac0518 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 28 15:55:46 1997 Tom Tromey + + * depend.am (MKDEP): Use $(CC), not gcc. + Wed Sep 24 23:48:26 1997 Tom Tromey * Release 1.2b. diff --git a/automake.texi b/automake.texi index 9e9958a2b..395428a6d 100644 --- a/automake.texi +++ b/automake.texi @@ -1831,9 +1831,8 @@ Occasionally a file which would otherwise be called ``source'' (eg a C should be listed in the @code{BUILT_SOURCES} variable. @vindex BUILT_SOURCES -Built sources are also not compiled by default. You must either -explicitly mention them in some other @samp{_SOURCES} variable for this -to happen. +Built sources are also not compiled by default. You must explicitly +mention them in some other @samp{_SOURCES} variable for this to happen. Note that, in some cases, @code{BUILT_SOURCES} will work in somewhat suprising ways. In order to get the built sources to work with diff --git a/depend.am b/depend.am index 284b1e144..338f41e77 100644 --- a/depend.am +++ b/depend.am @@ -20,7 +20,10 @@ ## on GNU make and gcc. It is only included in the generated ## Makefile.in if `automake' is not passed the `--include-deps' flag. -MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) +## We have to use $(CC), not `gcc', even though we do rely on gcc to +## do dependency tracking. We have to do this because `gcc' is not +## the real name of the compiler when cross-compiling. +MKDEP = $(CC) -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) ## We must create the .deps directory if it doesn't exist. We do it ## in this strange way a buglet in make -- it won't try to create diff --git a/lib/am/depend.am b/lib/am/depend.am index 284b1e144..338f41e77 100644 --- a/lib/am/depend.am +++ b/lib/am/depend.am @@ -20,7 +20,10 @@ ## on GNU make and gcc. It is only included in the generated ## Makefile.in if `automake' is not passed the `--include-deps' flag. -MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) +## We have to use $(CC), not `gcc', even though we do rely on gcc to +## do dependency tracking. We have to do this because `gcc' is not +## the real name of the compiler when cross-compiling. +MKDEP = $(CC) -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) ## We must create the .deps directory if it doesn't exist. We do it ## in this strange way a buglet in make -- it won't try to create