This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: suggested target_libs split


Looking at the fine piece of art that is $libgcj in configure.in
and friends, it seems the following change is needed to be able
to turn off languages by unsupporting some required library and
not turn it off when unsupporting some optional library.  Right
now, it seems only java/config-lang.in would be affected by this
proposal.

I'm just posting the doc change as an initial RFC, to avoid
hacking something that'll be rejected.  I know of no target
library that currently fits target_required_libs, but if it's
not there, it'll surely be square-peg-round-hole-crammed into
target_libs or target_optional_libs when it happens.  If you
don't want it, I won't add it.

So?

Index: sourcebuild.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/sourcebuild.texi,v
retrieving revision 1.72
diff -p -c -r1.72 sourcebuild.texi
*** sourcebuild.texi	15 Apr 2005 10:24:12 -0000	1.72
--- sourcebuild.texi	6 Jun 2005 00:49:01 -0000
*************** Java front end depends on the C++ front 
*** 682,689 ****
  @samp{lang_requires=c++}.
  @item target_libs
  If defined, this variable lists (space-separated) targets in the top
! level @file{Makefile} to build the runtime libraries for this
! language, such as @code{target-libobjc}.
  @item lang_dirs
  If defined, this variable lists (space-separated) top level
  directories (parallel to @file{gcc}), apart from the runtime libraries,
--- 682,702 ----
  @samp{lang_requires=c++}.
  @item target_libs
  If defined, this variable lists (space-separated) targets in the top
! level @file{Makefile} to build required parts of runtime libraries for
! this language, such as @code{target-libobjc}.  This includes both
! libraries that are unusable on their own, and libraries that can't be
! built without this language.
! @item target_required_libs
! If defined, this variable lists (space-separated) targets in the top
! level @file{Makefile} to build required parts of the runtime libraries
! for this language.  This includes targets that are also usable on their
! own, without this language.
! @item target_optional_libs
! If defined, this variable lists (space-separated) targets in the top
! level @file{Makefile} to build optional parts of the runtime libraries
! for this language, such as @code{target-boehm-gc} for the Java language.
! Targets in this list may be unsupported for some configurations and
! required for others.
  @item lang_dirs
  If defined, this variable lists (space-separated) top level
  directories (parallel to @file{gcc}), apart from the runtime libraries,

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]