]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
dependency fix from ian
authorTom Tromey <tromey@redhat.com>
Sun, 28 Sep 1997 21:56:39 +0000 (21:56 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 28 Sep 1997 21:56:39 +0000 (21:56 +0000)
ChangeLog
automake.texi
depend.am
lib/am/depend.am

index a4417c33218eb221544e21f54ec5ebb78b4f3449..b2cac0518182b948eb432b0696590ab91a229596 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Sep 28 15:55:46 1997  Tom Tromey  <tromey@cygnus.com>
+
+       * depend.am (MKDEP): Use $(CC), not gcc.
+
 Wed Sep 24 23:48:26 1997  Tom Tromey  <tromey@cygnus.com>
 
        * Release 1.2b.
index 9e9958a2ba2d03553ceebdcf3559c7def0ee7190..395428a6d3c833f6a5cd5c0df9b5d531381fa34e 100644 (file)
@@ -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
index 284b1e1448a28989915c1ff92a1a7f2aefcdd344..338f41e77af2cedf49afb19f2d8098179ee37cb7 100644 (file)
--- a/depend.am
+++ b/depend.am
 ## 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
index 284b1e1448a28989915c1ff92a1a7f2aefcdd344..338f41e77af2cedf49afb19f2d8098179ee37cb7 100644 (file)
 ## 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