Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Aleksandar Ristovski <ARistovski@qnx.com>
Cc: Doug Evans <dje@google.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] lmemmem.patch
Date: Mon, 14 Apr 2008 20:00:00 -0000	[thread overview]
Message-ID: <20080414194735.GQ1968@caradoc.them.org> (raw)
In-Reply-To: <4803ACCB.3040102@qnx.com>

On Mon, Apr 14, 2008 at 03:13:15PM -0400, Aleksandar Ristovski wrote:
> In file included from ../../src/gdb/gdb_string.h:25,
>                   from ../../src/gdb/tui/tui-main.c:22:
> gnulib/string.h:78:5: error: #if with no expression
> gnulib/string.h:98:5: error: #if with no expression
> ...

Boo, I forgot to run autoheader.  And I botched running automake by
not rerunning it after aclocal.  And the dependencies are wrong.

Checked in the attached.  Please tell me this works better...

-- 
Daniel Jacobowitz
CodeSourcery

2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.in (GNULIB_H): New.  Trigger all-lib.
	(defs_h): Use $(GNULIB_H).
	(all-lib): Depend on gnulib/Makefile.
	(gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
	* config.in, gnulib/Makefile.in: Regenerated.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.999
diff -u -p -r1.999 Makefile.in
--- Makefile.in	14 Apr 2008 18:04:00 -0000	1.999
+++ Makefile.in	14 Apr 2008 19:46:21 -0000
@@ -164,6 +164,10 @@ TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYST
 LIBGNU = gnulib/libgnu.a
 INCGNU = -I$(srcdir)/gnulib -Ignulib
 
+# Generated headers in the gnulib directory.  These must be listed
+# so that they are generated before other files are compiled.
+GNULIB_H = gnulib/string.h
+
 #
 # CLI sub directory definitons
 #
@@ -754,9 +758,10 @@ completer_h = completer.h
 cp_abi_h = cp-abi.h
 cp_support_h = cp-support.h $(symtab_h)
 dcache_h = dcache.h
+# Depend on $(GNULIB_H), since generated files are created in the gnulib build.
 defs_h = defs.h $(config_h) $(ansidecl_h) $(gdb_locale_h) $(gdb_signals_h) \
 	$(libiberty_h) $(bfd_h) $(ui_file_h) $(nm_h) \
-	$(fopen_bin_h) $(gdbarch_h)
+	$(fopen_bin_h) $(gdbarch_h) $(GNULIB_H)
 dictionary_h = dictionary.h
 disasm_h = disasm.h
 doublest_h = doublest.h $(floatformat_h)
@@ -1335,8 +1340,8 @@ $(TUI)$(EXEEXT): tui-main.o libgdb.a $(A
 		$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
 
 # Convenience rule to handle recursion.
-$(LIBGNU): all-lib
-all-lib:
+$(LIBGNU) $(GNULIB_H): all-lib
+all-lib: gnulib/Makefile
 	@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=gnulib subdir_do
 .PHONY: all-lib
 
@@ -1442,11 +1447,18 @@ subdir_do: force
 
 Makefile: Makefile.in config.status @frags@
 	# Regenerate the Makefile and the tm.h / nm.h links.
-	CONFIG_FILES=Makefile \
+	CONFIG_FILES="Makefile" \
 	  CONFIG_COMMANDS= \
 	  CONFIG_HEADERS= \
 	  $(SHELL) config.status
 
+gnulib/Makefile: gnulib/Makefile.in gnulib/Makefile.in config.status @frags@
+	CONFIG_FILES="gnulib/Makefile" \
+	  CONFIG_COMMANDS="depfiles" \
+	  CONFIG_HEADERS= \
+	  CONFIG_LINKS= \
+	  $(SHELL) config.status
+
 config.h: stamp-h ; @true
 stamp-h: config.in config.status
 	CONFIG_HEADERS=config.h:config.in \


  reply	other threads:[~2008-04-14 19:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14 19:14 Aleksandar Ristovski
2008-04-14 20:00 ` Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-04-14 23:46 Aleksandar Ristovski
2008-04-14 18:59 Aleksandar Ristovski
2008-04-14 19:13 ` Daniel Jacobowitz
     [not found] <200803241737.m2OHbgC8016762@greed.delorie.com>
     [not found] ` <e394668d0803241050w6a1f341u585fb4906135a44b@mail.gmail.com>
     [not found]   ` <200803241758.m2OHwDid017265@greed.delorie.com>
     [not found]     ` <e394668d0803241333nedb753j9b7b1593c6d3989f@mail.gmail.com>
     [not found]       ` <20080324203738.GC29991@ins.uni-bonn.de>
     [not found]         ` <e394668d0803241346h5006b63du8997cf9e081dc907@mail.gmail.com>
     [not found]           ` <20080324205119.GE29991@ins.uni-bonn.de>
     [not found]             ` <e394668d0803241420w3db1813bj4aa7803b74f3d40b@mail.gmail.com>
     [not found]               ` <20080324212354.GA16323@caradoc.them.org>
     [not found]                 ` <e394668d0803241436w5160a2dfodd33d44b174cb9bf@mail.gmail.com>
2008-03-30 21:37                   ` Daniel Jacobowitz
2008-03-31 18:35                     ` Doug Evans
2008-04-14 18:27                       ` Daniel Jacobowitz
2008-04-15 11:55                         ` Pierre Muller
2008-04-15 11:59                           ` Corinna Vinschen
2008-04-15 13:08                           ` 'Daniel Jacobowitz'
2008-04-15 13:15                             ` Pierre Muller
2008-04-15 13:37                               ` Corinna Vinschen
2008-04-15 14:12                                 ` Pierre Muller
2008-04-15 14:44                                   ` Corinna Vinschen
2008-04-15 14:57                                   ` Daniel Jacobowitz
2008-04-15 15:40                                     ` Pierre Muller
2008-04-15 17:14                                       ` 'Daniel Jacobowitz'
2008-04-15 18:07                                         ` Pierre Muller
2008-04-09 23:04                     ` Doug Evans
2008-04-10  5:31                       ` Daniel Jacobowitz

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=20080414194735.GQ1968@caradoc.them.org \
    --to=drow@false.org \
    --cc=ARistovski@qnx.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox