summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-22 13:30:19 +0000
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-22 13:30:19 +0000
commitd514f3bfc905f2385b21d33f30da9bcb810e5ca3 (patch)
tree0c40314e0364417e7a17fe8507df4caed13a5198 /libiberty
parentdd6b0680058974bc4a64ac12d5952dd8d4376cc0 (diff)
downloadgcc-d514f3bfc905f2385b21d33f30da9bcb810e5ca3.tar.gz
./
PR gdb/921 PR gdb/1646 PR gdb/2175 PR gdb/2176 * Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS. * Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS. (EXTRA_BUILD_FLAGS): Correct typo. Pass CPPFLAGS. (HOST_EXPORTS): Pass CPPFLAGS. (CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define. (LDFLAGS_FOR_TARGET): Initialize from configure script. (EXTRA_TARGET_FLAGS): Set CPPFLAGS. * Makefile.in, configure: Regenerated. * configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET, and CPPFLAGS_FOR_BUILD. libiberty/ * Makefile.in (CPPFLAGS): Define. (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141292 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/Makefile.in4
2 files changed, 8 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index e1a744c0368..fd9d3000217 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * Makefile.in (CPPFLAGS): Define.
+ (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
+
2008-10-15 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/37137
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index aa8626d5c00..41a71f5ea32 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -55,6 +55,7 @@ AR_FLAGS = rc
CC = @CC@
CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
RANLIB = @RANLIB@
MAKEINFO = @MAKEINFO@
PERL = @PERL@
@@ -78,6 +79,7 @@ FLAGS_TO_PASS = \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
+ "CPPFLAGS=$(CPPFLAGS)" \
"DESTDIR=$(DESTDIR)" \
"EXTRA_OFILES=$(EXTRA_OFILES)" \
"HDEFINES=$(HDEFINES)" \
@@ -109,7 +111,7 @@ installcheck: installcheck-subdir
INCDIR=$(srcdir)/$(MULTISRCTOP)../include
-COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
+COMPILE.c = $(CC) -c @DEFS@ $(CFLAGS) $(CPPFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@
# Just to make sure we don't use a built-in rule with VPATH
.c.o: