]> gcc.gnu.org Git - gcc.git/blobdiff - libjava/Makefile.am
re PR libgcj/17290 (Wrong Java dependencies are generated)
[gcc.git] / libjava / Makefile.am
index cc80edbed5e4c5d3fbe3e0d74483a179eaa7ddee..a959c4c2b0499afd9e8d5804e4e5eba2e0116268 100644 (file)
@@ -137,7 +137,6 @@ ZIP = @ZIP@
 ## compiles.
 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
 
-GCJCOMPILE = $(LIBTOOL) --tag=GCJ --mode=compile $(GCJ_WITH_FLAGS) -fclasspath= -fbootclasspath=$(here) $(JC1FLAGS) -MD -MT $@ -MF $(@:.lo=.d) -c
 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
 
@@ -170,6 +169,7 @@ AM_CXXFLAGS = \
 
 AM_GCJFLAGS = \
        @LIBGCJ_JAVAFLAGS@ \
+       -fclasspath= -fbootclasspath=$(here) \
        --encoding=UTF-8 \
        -Wno-deprecated
 
@@ -453,7 +453,7 @@ gnu/regexp/MessagesBundle_fr.properties
 propertyo_files = $(property_files:.properties=.properties.lo) 
 
 %.properties.lo: %.properties
-       $(GCJCOMPILE) -o $@ -c $< -Wc,--resource,`echo $@ | sed "s/\.lo$$//"`
+       $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,`echo $@ | sed "s/\.lo$$//"`
 
 if ONESTEP
 
@@ -519,16 +519,16 @@ SUFFIXES = .class .java .h .properties
 ## Note: we omit StackTrace here, since it has an explicit rule a bit
 ## later, and GNU make will warn in this case.
 $(filter-out gnu/gcj/runtime/StackTrace.lo, $(javao_files)) $(xlib_javao_files) $(lib_org_w3c_dom_la_OBJECTS) $(lib_org_xml_sax_la_OBJECTS): %.lo: %.java
-       $(GCJCOMPILE) -o $@ $<
+       $(LTGCJCOMPILE) -o $@ -c $<
 
 $(gtk_awt_peer_sources:.java=.lo): %.lo: %.java
-       $(GCJCOMPILE) -fjni -o $@ $<
+       $(LTGCJCOMPILE) -fjni -o $@ -c $<
 
 ## A special case.  The sibcall optimization can change the number of
 ## frames on the stack, and StackTrace makes assumptions about this
 ## number.
 gnu/gcj/runtime/StackTrace.lo: gnu/gcj/runtime/StackTrace.java
-       $(GCJCOMPILE) -fno-optimize-sibling-calls -o $@ $<
+       $(LTGCJCOMPILE) -fno-optimize-sibling-calls -o $@ -c $<
 
 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
        @echo Creating list of files to link...
This page took 0.028679 seconds and 5 git commands to generate.