Commit 33fe4596 by Mohan Embar Committed by Mohan Embar

Make-lang.in: (java.install-common) Add symlink for $(target_noncanonical)-gcjh for native builds.

	* Make-lang.in: (java.install-common) Add
	symlink for $(target_noncanonical)-gcjh for
	native builds.

From-SVN: r73875
parent 6c1e24d3
2003-11-24 Mohan Embar <gnustuff@thisiscool.com>
* Make-lang.in: (java.install-common) Add
symlink for $(target_noncanonical)-gcjh for
native builds.
2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
* Make-lang.in (java.extraclean): Delete.
......
......@@ -43,6 +43,7 @@
# Actual names to use when installing a native compiler.
JAVA_INSTALL_NAME = `echo gcj|sed '$(program_transform_name)'`
JAVA_TARGET_INSTALL_NAME = $(target_noncanonical)-`echo gcj|sed '$(program_transform_name)'`
GCJH_TARGET_INSTALL_NAME = $(target_noncanonical)-`echo gcjh|sed '$(program_transform_name)'`
# Actual names to use when installing a cross-compiler.
JAVA_CROSS_NAME = `echo gcj|sed '$(program_transform_cross_name)'`
......@@ -179,6 +180,11 @@ check-java :
# Nothing to do here.
java.install-normal:
# Install gcj as well as the target-independent tools.
# For a native build, we special-case gcjh and also install
# its explicitly-prefixed variant. This allows us to write
# portable makefiles for both cross builds (where gcjh *must*
# be explicitly prefixed) and native builds.
java.install-common: installdirs
-if [ -f $(GCJ)$(exeext) ]; then \
if [ -f $(GCJ)-cross$(exeext) ]; then \
......@@ -200,6 +206,11 @@ java.install-common: installdirs
rm -f $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
$(INSTALL_PROGRAM) $$tool$(exeext) $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
chmod a+x $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
if [ $$tool = gcjh ]; then \
rm -f $(DESTDIR)$(bindir)/$(GCJH_TARGET_INSTALL_NAME)$(exeext); \
( cd $(DESTDIR)$(bindir) && \
$(LN) $$tool_transformed_name$(exeext) $(GCJH_TARGET_INSTALL_NAME)$(exeext) ); \
fi; \
fi ; \
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment