All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Lungu <vlad@comsys.ro>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Fix dependency generation for older gcc versions
Date: Fri, 11 Apr 2008 21:20:14 +0300	[thread overview]
Message-ID: <47FFABDE.9030604@comsys.ro> (raw)

 With gcc 3.3.3 at least, compilation fails with

Generating include/autoconf.mk
gcc: compilation of header file requested
make: *** [include/autoconf.mk] Error 1

since commit 16fe77752eee099b9fb61ed73460e51cc94b37ba.

Signed-off-by: Vlad Lungu <vlad@comsys.ro>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index e5b4210..ef6927b 100644
--- a/Makefile
+++ b/Makefile
@@ -425,7 +425,7 @@ $(obj)include/autoconf.mk: $(obj)include/config.h 
$(VERSION_FILE)
     @$(XECHO) Generating include/autoconf.mk ; \
     set -e ; \
     : Generate the dependancies ; \
-    $(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > 
$@.dep ; \
+    $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > 
$@.dep ; \
     : Extract the config macros ; \
     $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f 
tools/scripts/define2mk.sed > $@
 
-- 
1.5.4

             reply	other threads:[~2008-04-11 18:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11 18:20 Vlad Lungu [this message]
2008-04-18  7:54 ` [U-Boot-Users] [PATCH] Fix dependency generation for older gcc versions Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47FFABDE.9030604@comsys.ro \
    --to=vlad@comsys.ro \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.