This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gperf depends on C++ (part 1 of 2)
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: gperf depends on C++ (part 1 of 2)
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 29 Sep 2001 16:55:10 -0300
- Organization: GCC Team, Red Hat
- References: <orpu89kcww.fsf@localhost.localdomain>
On Sep 29, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> This patch fixes a top-level dependence of target gperf configure so
> that it is not configured before libstdc++ is ready. Without this
> patch, a sufficiently parallel make all may result in gperf being
> (mis)configured.
And here is part two, that someone reported to me a long while ago,
but only now did I have a chance to implement the fix I had suggested.
When we disable the C++ language, disable target-gperf too, otherwise
it configures partially and ends up failing to build. I'm checking
this in, tested on i686-pc-linux-gnu.
Index: gcc/cp/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config-lang.in (target_libs): Added target-gperf, so that we
don't try to build it if C++ is disabled.
Index: gcc/cp/config-lang.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/config-lang.in,v
retrieving revision 1.8
diff -u -p -r1.8 config-lang.in
--- gcc/cp/config-lang.in 2000/12/12 20:28:51 1.8
+++ gcc/cp/config-lang.in 2001/09/29 19:52:12
@@ -1,5 +1,6 @@
# Top level configure fragment for GNU C++.
-# Copyright (C) 1994, 1995, 1997, 1998, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1997, 1998, 2000, 2001
+# Free Software Foundation, Inc.
#This file is part of GNU CC.
@@ -34,4 +35,4 @@ stagestuff="g++\$(exeext) g++-cross\$(ex
diff_excludes="-x parse.c -x parse.h"
-target_libs=${libstdcxx_version}
+target_libs="${libstdcxx_version} target-gperf"
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me