diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-08 20:18:18 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-08 20:18:18 +0000 |
commit | cc9ad22c6ffeeb5b50bf7f26a894d91e606eda0d (patch) | |
tree | 093809cebe8d2f89053f9c1edc959ff2b43580cb /gcc/cp/Make-lang.in | |
parent | 55965787c19874270f02be09f8f167e5d704a13f (diff) | |
download | gcc-cc9ad22c6ffeeb5b50bf7f26a894d91e606eda0d.tar.gz |
* configure.in: Add AC_ARG_PROGRAM to support program name
transformation with --program-prefix, --program-suffix and
--program-transform-name.
* Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(GCC_TARGET_INSTALL_NAME): Define.
(install-driver): Use the transformed target alias name.
* Make-lang.in (CXX_INSTALL_NAME, GXX_CROSS_NAME,
DEMANGLER_CROSS_NAME): Handle program_transform_name the way
suggested by autoconf.
(GXX_TARGET_INSTALL_NAME, CXX_TARGET_INSTALL_NAME): Define.
(c++.install-common): Use the transformed target alias names.
* Make-lang.in (G77_INSTALL_NAME, G77_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
* Make-lang.in (JAVA_INSTALL_NAME, JAVA_CROSS_NAME): Handle
program_transform_name the way suggested by autoconf.
(java.install-common): Also transform auxiliary program names with
program_transform_name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46856 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/Make-lang.in')
-rw-r--r-- | gcc/cp/Make-lang.in | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index c57cbe523ed..3a0a92485c0 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -38,14 +38,16 @@ # - define the names for selecting the language in LANGUAGES. # Actual names to use when installing a native compiler. -CXX_INSTALL_NAME = `t='$(program_transform_name)'; echo c++ | sed $$t` -GXX_INSTALL_NAME = `t='$(program_transform_name)'; echo g++ | sed $$t` -DEMANGLER_INSTALL_NAME = `t='$(program_transform_name)'; echo c++filt | sed $$t` +CXX_INSTALL_NAME = `echo c++|sed '$(program_transform_name)'` +GXX_INSTALL_NAME = `echo g++|sed '$(program_transform_name)'` +DEMANGLER_INSTALL_NAME = `echo c++filt|sed '$(program_transform_name)'` +CXX_TARGET_INSTALL_NAME = $(target_alias)-`echo c++|sed '$(program_transform_name)'` +GXX_TARGET_INSTALL_NAME = $(target_alias)-`echo g++|sed '$(program_transform_name)'` # Actual names to use when installing a cross-compiler. -CXX_CROSS_NAME = `t='$(program_transform_cross_name)'; echo c++ | sed $$t` -GXX_CROSS_NAME = `t='$(program_transform_cross_name)'; echo g++ | sed $$t` -DEMANGLER_CROSS_NAME = `t='$(program_transform_cross_name)'; echo c++filt | sed $$t` +CXX_CROSS_NAME = `echo c++|sed '$(program_transform_cross_name)'` +GXX_CROSS_NAME = `echo g++|sed '$(program_transform_cross_name)'` +DEMANGLER_CROSS_NAME = `echo c++filt|sed '$(program_transform_cross_name)'` # The name to use for the demangler program. DEMANGLER_PROG = c++filt$(exeext) @@ -162,10 +164,10 @@ c++.install-common: installdirs chmod a+x $(bindir)/$(GXX_INSTALL_NAME)$(exeext); \ rm -f $(bindir)/$(CXX_INSTALL_NAME)$(exeext); \ $(LN) $(bindir)/$(GXX_INSTALL_NAME)$(exeext) $(bindir)/$(CXX_INSTALL_NAME)$(exeext); \ - rm -f $(bindir)/$(target_alias)-g++$(exeext); \ - $(LN) $(bindir)/$(GXX_INSTALL_NAME)$(exeext) $(bindir)/$(target_alias)-g++$(exeext); \ - rm -f $(bindir)/$(target_alias)-c++$(exeext); \ - $(LN) $(bindir)/$(CXX_INSTALL_NAME)$(exeext) $(bindir)/$(target_alias)-c++$(exeext); \ + rm -f $(bindir)/$(GXX_TARGET_INSTALL_NAME)$(exeext); \ + $(LN) $(bindir)/$(GXX_INSTALL_NAME)$(exeext) $(bindir)/$(GXX_TARGET_INSTALL_NAME)$(exeext); \ + rm -f $(bindir)/$(CXX_TARGET_INSTALL_NAME)$(exeext); \ + $(LN) $(bindir)/$(CXX_INSTALL_NAME)$(exeext) $(bindir)/$(CXX_TARGET_INSTALL_NAME)$(exeext); \ fi ; \ if [ x$(DEMANGLER_PROG) != x ] && [ -x "$(DEMANGLER_PROG)" ]; then \ if [ -f g++-cross$(exeext) ] ; then \ |