Patch: runtime part of gcj -D
Anthony Green
green@cygnus.com
Sat Oct 16 14:50:00 GMT 1999
Tom wrote:
> BTW you probably can't use "basename" in your patch. It is probably
> better to use "case" to detect the match.
Ah yes. Here's take 3:
1999-10-16 Anthony Green <green@cygnus.com>
* ltmain.sh: Use case instead of basename to determine source
language.
===================================================================
RCS file: /cvs/java/libgcj/ltmain.sh,v
retrieving revision 1.6
diff -u -r1.6 ltmain.sh
--- ltmain.sh 1999/10/16 18:54:26 1.6
+++ ltmain.sh 1999/10/16 21:35:41
@@ -436,11 +436,12 @@
# 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 "`ba
sename $srcfile .class`" != "`basename $srcfile`"; then
- command="$base_compile $pic_flag $srcfile"
- else
- command="$base_compile $pic_flag -DPIC $srcfile"
- fi
+ case "$srcfile" in
+ *.java|*.class)
+ command="$base_compile $pic_flag $srcfile";;
+ *)
+ command="$base_compile $pic_flag -DPIC $srcfile";;
+ esac
if test "$build_old_libs" = yes; then
lo_libobj="$libobj"
dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
AG
--
Anthony Green Cygnus Solutions
Sunnyvale, California
More information about the Java-patches
mailing list