This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[java] fix installation when configured --with-program-suffix
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc-gnu dot org
- Date: Sat, 20 Jan 2007 19:25:29 +0100
- Subject: [java] fix installation when configured --with-program-suffix
Installation of gcj fails when configured --with-program-suffix. Ok to
checkin?
Matthias
2007-01-20 Matthias Klose <doko@debian.org>
* Makefile.am (install-exec-hook): Use transformed name.
* Makefile.in: Regenerate.
--- libjava/Makefile.am~ 2007-01-20 17:06:05.000000000 +0100
+++ libjava/Makefile.am 2007-01-20 19:27:19.000000000 +0100
@@ -445,10 +445,10 @@
endif
if BUILD_ECJ1
if NATIVE
- mv $(DESTDIR)$(libexecsubdir)/ecjx$(EXEEXT) $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
+ mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
else !NATIVE
## Undo the prepending of the target prefix
- mv $(DESTDIR)$(libexecsubdir)/$(target_noncanonical)-ecjx$(EXEEXT) $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
+ mv $(DESTDIR)$(libexecsubdir)/$(target_noncanonical)-`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
endif !NATIVE
endif BUILD_ECJ1