lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vic Bancroft <bancr...@america.net>
Subject gjc compile
Date Sat, 03 Jun 2006 03:35:57 GMT
The following diff seemed to help build a nice native binary in my 
fedora. The first modification makes using the new core archive file 
name and the second avoids a problematic class . . .

[bancroft@orca lucene-trunk]$ svn diff

Index: src/gcj/Makefile

===================================================================

--- src/gcj/Makefile    (revision 410910)

+++ src/gcj/Makefile    (working copy)

@@ -8,7 +8,7 @@

 CORE=$(BUILD)/classes/java

 SRC=.

-CORE_OBJ:=$(subst .jar,.a,$(wildcard $(BUILD)/lucene-[0-9]*.jar))

+CORE_OBJ:=$(subst .jar,.a,$(wildcard $(BUILD)/lucene-core-[0-9].*.jar))

 CORE_JAVA:=$(shell find $(ROOT)/src/java -name '*.java')

 CORE_HEADERS=\

@@ -55,7 +55,7 @@

 # yet accept from .class files.

 # NOTE: Change when http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15501 is fixed. $(CORE_OBJ)
: $(CORE_JAVA)

-       $(GCJ) $(GCJFLAGS) -c -I $(CORE) -o $@ `find $(ROOT)/src/java -name '*.java' -not
-name '*Sort*' -not -name 'Span*'` `find $(CORE) -name '*.class' -name '*Sort*' -or -name
'Span*'`

+       $(GCJ) $(GCJFLAGS) -c -I $(CORE) -o $@ `find $(ROOT)/src/java -name '*.java' -not
-name '*Sort*' -not -name 'Span*'  -not -name 'FieldCache*'` `find $(CORE) -name '*.class'
-name '*Sort*' -or -name 'Span*' -or -name 'FieldCache*'`

 # generate object code from jar files using gcj

 %.a : %.jar


# -- 
# "The future is here. It's just not evenly distributed yet."
# -- William Gibson, quoted by Whitfield Diffie



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message