Patch: runtime part of gcj -D

Anthony Green green@cygnus.com
Sat Oct 16 11:54:00 GMT 1999


Alex wrote:
> Actually, I think the `&&' should be replaced by `||'. `!=' tests that
> the file has the provided extension.

Oops - fixed.  Thanks Alex.

1999-10-16  Anthony Green  <green@cygnus.com>

	* ltmain.sh: Correct last patch.  Use ||, not &&.

Index: ltmain.sh
===================================================================
RCS file: /cvs/java/libgcj/ltmain.sh,v
retrieving revision 1.5
diff -u -r1.5 ltmain.sh
--- ltmain.sh   1999/10/16 05:08:23     1.5
+++ ltmain.sh   1999/10/16 18:39:22
@@ -436,7 +436,7 @@
 
       # All platforms use -DPIC, to notify preprocessed assembler code.
       # However, make sure we only set it for non-Java code.
-      if test "`basename $srcfile .java`" != "`basename $srcfile`" && test "`basename $srcfile .class`" != "`basename $srcfile`"; then
+      if test "`basename $srcfile .java`" != "`basename $srcfile`" || test "`basename $srcfile .class`" != "`basename $srcfile`"; then
         command="$base_compile $pic_flag $srcfile"
       else
         command="$base_compile $pic_flag -DPIC $srcfile"

AG

-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California


More information about the Java-patches mailing list