Re: building gcc against eclipse?

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.