[RFA] lmemmem.patch
Daniel Jacobowitz
drow@false.org
Mon Apr 14 20:00:00 GMT 2008
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 \
More information about the Gdb-patches
mailing list