patches/gcc/4.4.2/220-libiberty-pic.patch
author Remy Bohmer <linux@bohmer.net>
Sun Jul 11 22:23:34 2010 +0200 (2010-07-11)
changeset 2021 3e52a1510f87
parent 1544 2228ea3f6b79
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@1393
     1
diff -durN gcc-4.4.0.orig/libiberty/Makefile.in gcc-4.4.0/libiberty/Makefile.in
yann@1393
     2
--- gcc-4.4.0.orig/libiberty/Makefile.in	2008-10-22 15:30:19.000000000 +0200
yann@1393
     3
+++ gcc-4.4.0/libiberty/Makefile.in	2009-05-27 21:38:29.000000000 +0200
yann@1393
     4
@@ -227,6 +227,7 @@
yann@1393
     5
 	  $(AR) $(AR_FLAGS) $(TARGETLIB) \
yann@1393
     6
 	    $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
yann@1393
     7
 	  $(RANLIB) $(TARGETLIB); \
yann@1393
     8
+	  cp $(TARGETLIB) ../ ; \
yann@1393
     9
 	  cd ..; \
yann@1393
    10
 	else true; fi
yann@1393
    11