autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "has changed since the previous run"


From: Ralf Corsepius
Subject: Re: "has changed since the previous run"
Date: Fri, 02 Feb 2007 03:47:43 +0100

On Thu, 2007-02-01 at 21:29 -0500, DJ Delorie wrote:
> > I am observing the "CFLAGS" issue in newlib-1.15.0 with gcc < 4.2, but I
> > am not observing this issue with gcc >= 4.2.
> > 
> > So, I am suspecting the "CFLAGS" leak in GCC's toplevel Makefile.in
> > triggering the ".. change since previous run", might have been fixed in
> > GCC since then.
> 
> Our tree is based on gcc 4.2, though.  And we appear to have the
> separate cache patch.  What platform are you testing with?

Cross building Fedora -> various rtems targets toolchains, consisting of
gcc-core/gcc-g++/newlib, building one-tree style.

>   We see the
> bug mostly on Solaris and Cygwin.
Hmm, ... 


To work around this issue with gcc-4.1.x (I do not use it for gcc-4.0.x
nor gcc-4.2), I am using this hack below.

diff -uNr gcc-4.1.1.orig/Makefile.in gcc-4.1.1/Makefile.in
--- gcc-4.1.1.orig/Makefile.in  2006-04-04 23:03:05.000000000 +0200
+++ gcc-4.1.1/Makefile.in       2007-01-31 09:37:58.000000000 +0100
@@ -329,9 +329,9 @@
 # CFLAGS will be just -g.  We want to ensure that TARGET libraries
 # (which we know are built with gcc) are built with optimizations so
 # prepend -O2 when setting CFLAGS_FOR_TARGET.
-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+CFLAGS_FOR_TARGET = $(strip -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
 SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+CXXFLAGS_FOR_TARGET = $(strip $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
 LDFLAGS_FOR_TARGET = 


Ralf






reply via email to

[Prev in Thread] Current Thread [Next in Thread]