From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6656 invoked by alias); 13 Nov 2009 11:33:11 -0000 Received: (qmail 6648 invoked by uid 22791); 13 Nov 2009 11:33:10 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Nov 2009 11:33:06 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nADBX3BW013233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 13 Nov 2009 06:33:03 -0500 Received: from zebedee.pink (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nADBX1Cf009551; Fri, 13 Nov 2009 06:33:02 -0500 Message-ID: <4AFD43ED.2090803@redhat.com> Date: Fri, 13 Nov 2009 11:33:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Jack Howarth CC: java@gcc.gnu.org Subject: Re: building gcc against eclipse? References: <20091110010553.GA32119@bromo.med.uc.edu> <4AF939BD.3040301@redhat.com> <20091112165329.GA7454@bromo.med.uc.edu> <4AFC41DD.9030601@redhat.com> <20091112223941.GA9523@bromo.med.uc.edu> <4AFD3F22.90503@redhat.com> In-Reply-To: <4AFD3F22.90503@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00030.txt.bz2 Andrew Haley wrote: > ecj1 is first built in libgcj (as ecjx) and then installed in the install dir. > ecjx is renamed to ecj1 with: > > if BUILD_ECJ1 > ## Undo any prepending of the target prefix and transform > ## to the actual host's executable suffix. > mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext) > endif BUILD_ECJ1 > > If you want to replace ecjx with some shell script that runs eclipse-ecj.jar, > replace this command with something appropriate. Or (better) put a jar file containing org/eclipse/jdt/internal/compiler/batch/GCCMain.class somwehere, and In if ENABLE_SHARED ## Use ecj.jar at runtime. ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR) else !ENABLE_SHARED ## Use ecj.jar at compile time. ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH) endif !ENABLE_SHARED replace the line ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR) with ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR):/path/to/my/jarfile Andrew.