patches/gcc/4.2.2/230-libbackend_dep_gcov-iov.h.patch
author Remy Bohmer <linux@bohmer.net>
Sun Jul 11 22:23:34 2010 +0200 (2010-07-11)
changeset 2021 3e52a1510f87
parent 431 8bde4c6ea47a
permissions -rw-r--r--
debug/gdb: Fix compilation for Mingw hosts

GDB requires PDcurses instead of ncurses while running on Windows.
So, do not always compile ncurses in case GDB needs to build.

PDcurses is provided by an earlier build step and is not described in
this file.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciense.nib.fr: we already have a way to detect ncurses usage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@313
     1
diff -durN gcc-4.2.1.orig/gcc/Makefile.in gcc-4.2.1/gcc/Makefile.in
yann@313
     2
--- gcc-4.2.1.orig/gcc/Makefile.in	2007-05-31 17:37:38.000000000 +0200
yann@313
     3
+++ gcc-4.2.1/gcc/Makefile.in	2007-08-03 20:36:14.000000000 +0200
yann@313
     4
@@ -2660,7 +2660,7 @@
yann@313
     5
 # FIXME: writing proper dependencies for this is a *LOT* of work.
yann@313
     6
 libbackend.o : $(OBJS-common:.o=.c) $(out_file) \
yann@313
     7
   insn-config.h insn-flags.h insn-codes.h insn-constants.h \
yann@313
     8
-  insn-attr.h  $(DATESTAMP) $(BASEVER) $(DEVPHASE)
yann@313
     9
+  insn-attr.h  $(DATESTAMP) $(BASEVER) $(DEVPHASE) gcov-iov.h
yann@313
    10
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
yann@313
    11
 	  -DTARGET_NAME=\"$(target_noncanonical)\" \
yann@313
    12
 	  -DLOCALEDIR=\"$(localedir)\" \