Makefile patch: CNI header dependencies
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Wed Oct 10 10:10:00 GMT 2001
Modifying a .java file seems to be causing a random set of gcjh commands
to be run that don't include the class that was modified and do include
things like java/lang/String which in turn causes a bunch of native
files to be rebuilt when they shouldn't.
This patch fixes the problem by making CNI header files depend on their
.class file. It reduces the rebuild time after touching some random
.java file by lots.
Jeff, it looks like you may have introduced this problem with this patch:
2001-07-07 Jeff Sturm <jsturm@one-point.com>
* Makefile.am (libgcj.jar): Don't recursively make
built_java_source_files. Avoid long command lines.
Don't change to $(srcdir) to invoke javac.
(libgcj.la, libgcjx.la); Avoid long command lines.
($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
* Makefile.in: Rebuilt.
Why make the nat_headers depend on libgcj.jar?
Does this patch look okay to you guys? And BTW does anyone know why
libtool is now doing the following during make install? its very annoying!
/bin/sh ./libtool --mode=install /usr/bin/install -c libgcj.la
/home/bryce/gcc/lib/libgcj.la
libtool: install: warning: relinking `libgcj.la'
cd /home/bryce/cvs/gcc/build/i686-pc-linux-gnu/libjava; /bin/sh
./libtool --mode=relink /home/bryce/cvs/gcc/build/gcc/xgcc
-B/home/bryce/cvs/gcc/build/gcc/
-B/home/bryce/gcc/i686-pc-linux-gnu/bin/
-B/home/bryce/gcc/i686-pc-linux-gnu/lib/ -isystem
/home/bryce/gcc/i686-pc-linux-gnu/include
-L/home/bryce/cvs/gcc/build/i686-pc-linux-gnu/libjava -ffloat-store -g
-O2 -o libgcj.la -objectlist libgcj.objectlist
../libffi/libfficonvenience.la -rpath /home/bryce/gcc/lib -rpath
/home/bryce/gcc/lib -lpthread ./libltdl/libltdlc.la
./../boehm-gc/libgcjgc.la
-L/home/bryce/cvs/gcc/build/i686-pc-linux-gnu/libjava/../boehm-gc/.libs
./../zlib/libzgcj.la
-L/home/bryce/cvs/gcc/build/i686-pc-linux-gnu/libjava/../zlib/.libs
-version-info 2:0:0
regards
Bryce.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libjava-makefile.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20011010/fa087d72/attachment.ksh>
More information about the Java-patches
mailing list